-->
Page 1 of 5

mcp23s17 portexpander for esp8266

PostPosted: Thu Sep 24, 2015 4:11 pm
by erhardd
MetalPhreak wrote an excellent SPI-Driver only I am a bit overwhelmed from these possiblities.
If I need the speed I will take it.
https://github.com/MetalPhreak
I found this:
https://github.com/n0mjs710/MCP23S17
-and with a little change in MCP23S17.cpp (with notepad etc.)
all PORTB &= 0b11111011; to digitalWrite(SS,LOW); and
PORTB |= 0b00000100; to digitalWrite(SS,HIGH);
(4 times)
it compiles by the Arduino-IDE with esp_addon;
- here is the PCB I used
https://www.mikrocontroller.net/topic/374780#4253148
(Please, no questions in this forum, because I have left it)
https://github.com/n0mjs710/MCP23S17/bl ... -Test2.png
in the picture the supply must be 3,3V!

Re: mcp23s17 portexpander for esp8266

PostPosted: Fri Sep 25, 2015 9:13 am
by erhardd
Image

Re: mcp23s17 portexpander for esp8266

PostPosted: Fri Sep 25, 2015 9:15 am
by erhardd
This is the mcp23s17 on the "baseboard" shown here:
https://www.mikrocontroller.net/topic/374780#4253148

Re: mcp23s17 portexpander for esp8266

PostPosted: Sat Sep 26, 2015 3:28 am
by erhardd
If you want to build the STMPE-Expander:
https://www.mikrocontroller.net/topic/374780#4244966
you have to split the cs-line on the Adapter(1x CS for each Chip) to free Pin on header(most right)!
I have not updated that.
(Please, no questions in "mikrocontroller.net/forum", because I have left it)