|
|
@ -214,6 +214,15 @@ void LiquidCrystal_I2C::createChar(uint8_t location, uint8_t charmap[]) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//createChar with PROGMEM input
|
|
|
|
|
|
|
|
void LiquidCrystal_I2C::createChar(uint8_t location, const char *charmap) { |
|
|
|
|
|
|
|
location &= 0x7; // we only have 8 locations 0-7
|
|
|
|
|
|
|
|
command(LCD_SETCGRAMADDR | (location << 3)); |
|
|
|
|
|
|
|
for (int i=0; i<8; i++) { |
|
|
|
|
|
|
|
write(pgm_read_byte_near(charmap++)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Turn the (optional) backlight off/on
|
|
|
|
// Turn the (optional) backlight off/on
|
|
|
|
void LiquidCrystal_I2C::noBacklight(void) { |
|
|
|
void LiquidCrystal_I2C::noBacklight(void) { |
|
|
|
_backlightval=LCD_NOBACKLIGHT; |
|
|
|
_backlightval=LCD_NOBACKLIGHT; |
|
|
|