#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
byte light[8] = {
B00100,
B01110,
B11111,
B11111,
B11111,
B11111,
B01110,
B00100,
};
byte dark[8] = {
B00100,
B01010,
B10001,
B10001,
B10001,
B10001,
B01010,
B00100,
};
void setup() {
lcd.begin(16, 2);
lcd.createChar(1, light);
lcd.createChar(2, dark);
// you can now interact with the LCD, e.g.:
lcd.print("Power On!");
delay(1000);
lcd.clear();
lcd.setCursor(5,0);
lcd.print("text");
lcd.setCursor(0,1);
lcd.print("test");
lcd.write(byte(1));
lcd.write(byte(2));
}
void loop() {
// put your main code here, to run repeatedly:
}