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

Need to define LCD at runtime #18

@timwilky

Description

@timwilky

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions