Hi,
Am trying out one of these port expanders with a 5v Uno /Nano in order to reduce the footprint of the full project rather than using the Mega2560.
https://robotic-controls.com/learn/electronics/io-port-expander-mcp23017-and-mcp23008
While the above example is good and clear for directly addressing the ports of the MCP chip, wondered if there was any way to it with existing libraries ?
eg, we are using a ILI9341 TFT and its RST and CS pins are 'slow' signals so seem ideal for output though the MCP, but unable to see from our limited code knowledge if there is any way to readily achieve this.
Same when using an input sensor like a DS18B20 library, is that at all possible without major modification to the library itself ?
#define TFT_RST 7
#define TFT_DC 8
#define TFT_CS 10
#define TFT_MOSI 11
#define TFT_MISO 12
#define TFT_CLK 13
// Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST, TFT_MISO);
// Use hardware SPI (on Uno, #10, #9, #11, #13, #8, #12)
(the Uno is fast enough to drive the tft display for our project needs)
thanks
Am trying out one of these port expanders with a 5v Uno /Nano in order to reduce the footprint of the full project rather than using the Mega2560.
https://robotic-controls.com/learn/electronics/io-port-expander-mcp23017-and-mcp23008
While the above example is good and clear for directly addressing the ports of the MCP chip, wondered if there was any way to it with existing libraries ?
eg, we are using a ILI9341 TFT and its RST and CS pins are 'slow' signals so seem ideal for output though the MCP, but unable to see from our limited code knowledge if there is any way to readily achieve this.
Same when using an input sensor like a DS18B20 library, is that at all possible without major modification to the library itself ?
#define TFT_RST 7
#define TFT_DC 8
#define TFT_CS 10
#define TFT_MOSI 11
#define TFT_MISO 12
#define TFT_CLK 13
// Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST, TFT_MISO);
// Use hardware SPI (on Uno, #10, #9, #11, #13, #8, #12)
(the Uno is fast enough to drive the tft display for our project needs)
thanks