Advertisement
microrobotics

Untitled

Oct 17th, 2021
1,907
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. #include <LiquidCrystal.h>   // include the library code:
  2.  
  3. const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
  4. LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
  5.  
  6. void setup() {
  7.   lcd.begin(16, 2);     // set up the LCD size
  8.   lcd.print("hello, world!");  // Print a message to the LCD.
  9. }
  10.  
  11. void loop() {
  12.   // set the cursor to column 0, line 1
  13.   lcd.setCursor(0, 1);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement