#define SDA_pin A4
#define SCL_pin A5
#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 half_bar[] = {
0b00000,
0b00000,
0b00000,
0b00000,
0b11111,
0b11111,
0b11111,
0b11111
};
uint8_t full_bar[] = {
0b11111,
0b11111,
0b11111,
0b11111,
0b11111,
0b11111,
0b11111,
0b11111
};
void setup()
{
lcd.init(); // initialize the lcd
// Print a message to the LCD.
lcd.backlight();
lcd.createChar(1, half_bar);
lcd.createChar(2, full_bar);
lcd.setCursor(0,0);
lcd.print("Speed Ready! Dir");
lcd.setCursor(1,1);
lcd.print(" \1\2 45");
lcd.setCursor(1,2);
lcd.print("\1\2\2\2");
lcd.setCursor(7,3);
lcd.print("MODE: 1");
}
void loop()
{
}