You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 22, 2020. It is now read-only.
I have a problem that my LCD is unknown at compile time, so can make assumptions such as address, columns,rows etc. But I need to be able to redefine these at run.
My workround is quite simple to add a new method redefine to LiquidCrystal_I2C.cpp
I have a problem that my LCD is unknown at compile time, so can make assumptions such as address, columns,rows etc. But I need to be able to redefine these at run.
My workround is quite simple to add a new method redefine to LiquidCrystal_I2C.cpp
void LiquidCrystal_I2C::redefine(uint8_t lcd_addr, uint8_t lcd_cols, uint8_t lcd_rows) {
_addr = lcd_addr;
_cols = lcd_cols;
_rows = lcd_rows;
}
Obviously this new method needs to be added to LiquidCrystal_I2C.h as well
void redefine(uint8_t lcd_addr, uint8_t lcd_cols, uint8_t lcd_rows);
Any chance of the above being included for submission to any update of the library?
The text was updated successfully, but these errors were encountered: