//YWROBOT
//Compatible with the Arduino IDE 1.0
//Library version:1.1
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,20,4); // set the LCD address to 0x27 for a 16 chars and 2 line display
uint8_t alert0[8] = {
0b00000,
0b00000,
0b00000,
0b00000,
0b00001,
0b00001,
0b00011,
0b00010,
};
uint8_t alert1[8] = {
0b01100,
0b11110,
0b10010,
0b10010,
0b10011,
0b00001,
0b01101,
0b01100,
};
uint8_t alert2[8] = {
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b10000,
0b10000,
};
uint8_t alert3[8] = {
0b00110,
0b00100,
0b01100,
0b11100,
0b11000,
0b11000,
0b11111,
0b01111,
};
uint8_t alert4[8] = {
0b01100,
0b01100,
0b01100,
0b00000,
0b01100,
0b00000,
0b11111,
0b11111,
};
uint8_t alert5[8] = {
0b11000,
0b01000,
0b01100,
0b01110,
0b00111,
0b00011,
0b11111,
0b11111,
};
uint8_t alertb1[8] = {
0b00001,
0b00001,
0b00001,
0b00011,
0b00010,
0b00010,
0b00110,
0b00100,
};
uint8_t alertb2[8] = {
0b10000,
0b10000,
0b10000,
0b11000,
0b01000,
0b01000,
0b01100,
0b00100,
};
uint8_t alertb3[8] = {
0b00101,
0b01101,
0b01001,
0b01001,
0b11000,
0b10001,
0b10000,
0b11111,
};
uint8_t alertb4[8] = {
0b10100,
0b10110,
0b10010,
0b10010,
0b00011,
0b10001,
0b00001,
0b11111,
};
void setup()
{
lcd.init(); // initialize the lcd
// Print a message to the LCD.
lcd.backlight();
lcd.createChar(6, alert0);
lcd.setCursor(0,0);
lcd.print("\x06");
lcd.createChar(1, alert1);
lcd.setCursor(1,0);
lcd.print("\x01");
lcd.createChar(2, alert2);
lcd.setCursor(2,0);
lcd.print("\x02");
lcd.createChar(3, alert3);
lcd.setCursor(0,1);
lcd.print("\x03");
lcd.createChar(4, alert4);
lcd.setCursor(1,1);
lcd.print("\x04");
lcd.createChar(5, alert5);
lcd.setCursor(2,1);
lcd.print("\x05");
}
void loop()
{
}