safwan092

LCD with Driver Board 16x2

Mar 7th, 2018
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. #include <Wire.h>
  2. #include <LiquidCrystal_I2C.h>
  3.  
  4. // Set the LCD address to 0x27 for a 16 chars and 2 line display
  5. LiquidCrystal_I2C lcd(0x3F, 16, 2);
  6.  
  7. void setup()
  8. {
  9.   // initialize the LCD
  10.   lcd.begin();
  11.  
  12.   // Turn on the blacklight and print a message.
  13.   lcd.backlight();
  14.   lcd.print("Hello, world!");
  15. }
  16.  
  17. void loop()
  18. {
  19.   // Do nothing here...
  20. }
Advertisement
Add Comment
Please, Sign In to add comment