Advertisement
tuixte

Arduino LCD hello world

Mar 16th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <LiquidCrystal.h>
  2.  
  3. LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
  4.  
  5. void setup() {
  6.   lcd.begin(16, 2);
  7.   lcd.print("hello, world!");
  8. }
  9.  
  10. void loop() {
  11.   lcd.setCursor(0, 1);
  12.   lcd.print(millis()/1000);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement