Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <LiquidCrystal_I2C.h>
- //replace 0x3F with address you found at I2C scanner.
- LiquidCrystal_I2C lcd(0x3F, 16, 2);
- void setup() {
- //16 is the width. 2 is the height.
- lcd.begin(16,2);
- lcd.init();
- // Turn on the backlight.
- lcd.backlight();
- // Move the cursor characters to the right and
- // zero characters down (line 1).
- lcd.setCursor(0, 0);
- // Print HELLO WORLD! to the screen, starting at 0,0.
- lcd.print("HELLO WORLD!");
- // Move the cursor to the next line and print
- // www.rinaldo.id.
- lcd.setCursor(0, 1);
- lcd.print("www.rinaldo.id");
- }
- void loop() {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement