Skip to content

setBacklight does not sync io device #9

@kimble4

Description

@kimble4

Using an LCD via a PCF8574 on i2c, with the usual arrangement of the backlight being driven by pin 3. If you call setBacklight(), the change does not take effect until the next LCD command.

This appears to be due to the use of:
ioDeviceDigitalWrite(_io_method, _backlightPin, state);

...rather than the synchronised method. This is a problem if you simply want to timeout (or illuminate) the backlight without changing the contents of the display. I'm issuing a setCursor() after setting the backlight status as a work-around.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions