So, I have a problem i fail to work out on my own. I have two MCP23S17's connected to a T4 for reading buttons/encoders.
The MCP23S17's behaves as expected, provided that the USB connector is hooked up to my computer, and Serial.begin(115200) is called in setup(). If I remove either the USB cable, or the Serial.begin(115200) line, the MCP's will not initialize at startup.
Some observations:
loop() runs as expected, even if the MCP's don't.
No while (!Serial) statements are used.
VUSB is separated from VIN.
I am really tired right now, so maybe I'm missing something obvious. I'd appreciate I someone could point me in the right direction. Will post more code if needed!
The MCP23S17's behaves as expected, provided that the USB connector is hooked up to my computer, and Serial.begin(115200) is called in setup(). If I remove either the USB cable, or the Serial.begin(115200) line, the MCP's will not initialize at startup.
Some observations:
loop() runs as expected, even if the MCP's don't.
No while (!Serial) statements are used.
VUSB is separated from VIN.
I am really tired right now, so maybe I'm missing something obvious. I'd appreciate I someone could point me in the right direction. Will post more code if needed!