Hello everyone
I’ve been trying to develop some custom characters on my LCD screen with an I2C backpack. I have spent a fair amount of time trying to isolate the issue and resolve it but have drawn a blank an help will be much appreciated.
When I simply use the “LIQUIDCRYSTAL_I2C_SPARK” library which is public available for all users to display text it works fine. When I attempt to use the command createChar it freezes my screen. For example if I place it in the setup function it stops writing text to LCD screen after the createChar function. It will write “Hi here is my custom character” then nothing more. The ordering of the createChar function does not solve the freezing problem it simply dictates where it will freeze.
When I tried to make the board LED turn on after using the createChar command the light would not light up.
The public library I am trying to use is located here: https://github.com/BulldogLowell/LiquidCrystal_I2C_Spark
void setup(void)
{
Serial.begin(9600);
lcd = new LiquidCrystal_I2C(0x27, 20, 4);
//lcd->begin(20,4);
lcd->init();
lcd->backlight();
lcd->clear();
byte customChar[8] = { 0b00000,0b10101,0b01010,0b00100,0b11111,0b00100,0b01010,0b10101 };
lcd->print("Hi here is my custom");
lcd->print("character: ");
delay(10000);
lcd->createChar(0, customChar);
lcd->print("Any more text?");
digitalWrite(13, HIGH);
//lcd->write(uint8_t(0));
}
Thanks in advance