arduino/Examples/LCDTest/HC_LiquidCrystal_I2C/examples/HelloWorld/HelloWorld.ino

21 lines
369 B
C++

#include <Wire.h>
#include <HC_LiquidCrystal_I2C.h>
// Set the LCD address to 0x27 for a 16 chars and 2 line display
HC_LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup()
{
// initialize the LCD
lcd.begin();
// Turn on the blacklight and print a message.
lcd.backlight();
lcd.print("Hello, world!");
}
void loop()
{
// Do nothing here...
}