carcyn

Untitled

Feb 3rd, 2020
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <LiquidCrystal.h>
  2. const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
  3. LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
  4.  
  5. void setup() {
  6. // set up the LCD's number of columns and rows:
  7. lcd.begin(16, 2);
  8. // Print a message to the LCD.
  9. lcd.print("hello, world!");
  10. }
  11.  
  12. void loop() {
  13. // Turn off the blinking cursor:
  14. lcd.noBlink();
  15. delay(3000);
  16. // Turn on the blinking cursor:
  17. lcd.blink();
  18. delay(3000);
  19. }
Add Comment
Please, Sign In to add comment