Advertisement
DanielKrastev-bit

stupid lcd

Apr 10th, 2024
738
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Arduino 0.45 KB | Software | 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(0x27, 16, 2);
  6.  
  7. void setup() {
  8.   // Initialize the LCD with the I2C address and dimensions
  9.   lcd.init();
  10.   // Turn on the backlight (if available on your module)
  11.   lcd.backlight();
  12.   // Print a message to the LCD.
  13.   lcd.print("Hello, World!");
  14. }
  15.  
  16. void loop() {
  17.   // Nothing here for a one-time display
  18. }
  19.  
Tags: #arduino
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement