microrobotics

Untitled

Jul 20th, 2021
1,202
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data