Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Wire.h>
- #include <LiquidCrystal_I2C.h>
- // Set the LCD address to 0x27 for a 16 chars and 2 line display
- LiquidCrystal_I2C lcd(0x27, 16, 2);
- void setup() {
- // Initialize the LCD with the I2C address and dimensions
- lcd.init();
- // Turn on the backlight (if available on your module)
- lcd.backlight();
- // Print a message to the LCD.
- lcd.print("Hello, World!");
- }
- void loop() {
- // Nothing here for a one-time display
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement