Skip to content

Inkplate6 port expander addressing issue. #283

@galah-x

Description

@galah-x

I have an older eradonica inkplate6 I bought a few years ago and use several times a year. Worked well
Recently had to update the Wifi details.

Using Arduino 1.8.19 on debian stable 13.1
Went back to my old code, installed Prefererences.h to take wifi details from NVM, installed inkplate board code libraries (10.2.2), compiled.

Found I had to change calls from display.pinModeMCP(R1, OUTPUT); to display.pinModeIO(R1, OUTPUT); OK, however the documentation on https://inkplate.readthedocs.io/en/stable/arduino.html is obsolete too.

Same change for display.digitalWriteIO() and display.digitalReadIO() calls.

Tested my hardware, access to the 7 B port bits of the mcp23017 port expander wasn't working. Writes were definitely not working, unsure about reads

Experimented, changing the IO calls to 3 parameters , like this

#define INT_IO_ADDR 0x20
display.pinModeIO(R1, OUTPUT, INT_IO_ADDR); // had to add the port expander I2C address. default seems wrong.

for pinMode(), digitalWrite(). digitalRead()

fixed the problem for me. I thought the inkplate6 only had a single mcp device so unsure why I didn't have I2C hangs prior to the explicit address add.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions