DEV_DISPLAY_128X64 with I2C I/O Expander: Has anyone done this?

Status
Not open for further replies.
Dear folks,

I am considering getting a LCD Graphics unit (DEV_DISPLAY_128X64) but was wondering if anyone has ever attempted to use it with an I2C I/O port expander like the MCP23017?

It would be an interesting challenge to figure this out, but before I proceed, can you think of any issues that might get in the way?

I am a big fan of the Teensy 2.0 and 3.0, and I would like to make this work in order to free up I/O pins for other tasks.

Many thanks!
 
Have you read the Nick Gammon article? He uses MCP23S17 (for SPI) and MCP23017 (for I2C) for driving a graphical LCD on duino's. Pay attention that several old graphical LCDs works only at 5V (you will have to use a level converter).Consider that a graphical LCD can be slow used with I2C so prolly better use MCP23Sxx series that uses a special addressing feature on CS pin that it's extremely useful when you need several port expanders on same wires, in this way you just use one wire more than I2C but faster and you can still add several other GPIOs. Gammon's code should work as is, maybe some minor modifications to avoid avr/pgmspace.h, I don't remember well but maybe not works with T3.
 
Many thanks, sumotoy!

Yes, I am aware that the I2C approach can be a little pokey, but I will try the MCP23S17 approach. BTW, that chip is perfectly happy at 3.3V, so I will do that and avoid level-shifters. On to the article...
 
I don't remember well but maybe not works with T3.

Do you mean that the MCP23017 might not work on a Teensy 3, or that the combination of display/expander/T3 might not work?

The reason I'm asking is because I have a MCP23017 here, and am planning to use this to connect some sensors.

I could simply try and find out when I get to it, but it would be a shame if I destroy it on first use.
Although, as far as I can find out, it can operate from 2.7-5.5V so that shouldn't be a problem...

(sorry for reviving a 'closed' topic, seemed like the best place to ask)
 
I have a lot of experiences with MCP23xxx GPIO expanders, even on Teensy3, and works at 5v or 3.3v with no problems!
 
Status
Not open for further replies.
Back
Top