The wiring instructions that I used can be found here. I am probably going to move the display somewhere as it hangs over the edge of the treads now!
Writing to the display is very simple as shown by the below Arduino code:
Initialize the LCD
// Include and initialize the library for the LCD
#include <LiquidCrystal.h>
LiquidCrystal lcd(11, 12, 3, 4, 2, 5);
String lcdMessage = "";
#include <LiquidCrystal.h>
LiquidCrystal lcd(11, 12, 3, 4, 2, 5);
String lcdMessage = "";
Write to the LCD
// Set the size of the lcd and say hi
lcd.begin(16,2);
lcd.print("HW Interface up");
lcd.setCursor(0, 1); // Next write to position zero of second line
lcd.print("P2A:Waiting");
lcd.begin(16,2);
lcd.print("HW Interface up");
lcd.setCursor(0, 1); // Next write to position zero of second line
lcd.print("P2A:Waiting");
No comments:
Post a Comment