Advertisement
microrobotics

Untitled

Oct 18th, 2021
989
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. #include <wire.h>
  2. #include <liquidcrystal_i2c_gy.h>
  3.  
  4. LiquidCrystal_I2C_GY lcd(0x20,20,4);  // set the LCD address to 0x20 or 0x38 for a 20 chars and 4 line display
  5.  
  6. void setup()
  7. {
  8.   lcd.init();                      // initialize the lcd
  9.  
  10.   // Print a message to the LCD.
  11.   lcd.backlight();
  12.   lcd.print("Hello, world!");
  13. }
  14.  
  15. void loop()
  16. {
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement