From 072347ee32f92d0f53b620dbdaa880a2e403c0fd Mon Sep 17 00:00:00 2001 From: ortegafernando Date: Sun, 13 Mar 2016 22:02:46 +0100 Subject: [PATCH] Now, createChar function can use PROGMEM charmap --- LiquidCrystal_I2C.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LiquidCrystal_I2C.cpp b/LiquidCrystal_I2C.cpp index 1ab05d0..44b7b05 100644 --- a/LiquidCrystal_I2C.cpp +++ b/LiquidCrystal_I2C.cpp @@ -219,7 +219,7 @@ 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++)); + write(pgm_read_byte_near(charmap++)); } }