mathertel / LiquidCrystal_PCF8574

A library for driving LiquidCrystal displays (LCD) by using the I2C bus and an PCF8574 I2C adapter.
https://www.mathertel.de/Arduino/LiquidCrystal_PCF8574.aspx
BSD 3-Clause "New" or "Revised" License
133 stars 53 forks source link

no matching function for call to 'LiquidCrystal_PCF8574::createChar(int, byte [8])' #17

Closed jasonmarkham closed 2 years ago

jasonmarkham commented 3 years ago

I defined the character as a byte byte cM[8] = {B01100, B10000, B10000, B01100, B10001, B01010, B00100, B00100};

initialise in setup with lcd.createChar(0, cM);

When I compile I get this error

no matching function for call to 'LiquidCrystal_PCF8574::createChar(int, byte [8])'

mathertel commented 3 years ago

The createChar() function in the latest published version had the problem to use a int[8] instead of a byte[8] parameter. In the current master this has been fixed already. Will be fixed in the next version. You can use the master from github, change the array to int[8] for now..

mathertel commented 2 years ago

Next version is 2.0.0 and has this interface change as requested. A PROGMEM version will be available vor AVR processors as well #22