Skip to content
This repository has been archived by the owner on Oct 22, 2020. It is now read-only.

Need to define LCD at runtime #18

Open
timwilky opened this issue May 3, 2018 · 0 comments
Open

Need to define LCD at runtime #18

timwilky opened this issue May 3, 2018 · 0 comments

Comments

@timwilky
Copy link

timwilky commented May 3, 2018

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant