-
Notifications
You must be signed in to change notification settings - Fork 90
Description
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.