Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*NHD-0216PZ LCD Display to Arduino
- Components: LCD Display, 10K potentiometer
- For more info visit: http://bit.ly/Sx9YUW
- Sourced from: http://bit.ly/LrfesM
- Dimitri Sudomoin - Jul.15.2012
- */
- #include <LiquidCrystal.h>
- // define interface pins
- // LiquidCrystal lcd(RS, EN, DB4, DB5, DB6, DB7);
- LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
- void setup()
- {
- // set LCD's number of columns and rows
- lcd.begin(16, 2);
- // print a message to the LCD
- lcd.print("hello, world!");
- }
- void loop()
- {
- // set the cursor to column 0, line 1
- // note: line 1 is the second row, since counting begins with 0
- lcd.setCursor(0, 1);
- // print the number of seconds since reset
- lcd.print(millis()/1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement