Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By Ecoli-557
#52848 Thank you for the information, however, what I can't get to work is the MCP23S17.
Do you have an updated library for this part?
-Regards
User avatar
By forlotto
#52850 What are the specifics what does it allow?

How many I/O?

What are the things these I/O pins support:
On?
Off?
pwm?
interrupts?
status register?

Communications buses it is SPI but anything else:
Is it also I2C based?

Thanks
User avatar
By Ecoli-557
#52852 Forlotto-
It is SPI-based. I2C is a bit slow and is half-duplex while the SPI is much faster and full-duplex.
I have used them in SPI mode while coding in another language and they work quite well and are fast.
I am new to the ESP8266 chip (2 weeks) and trying to get it straight in my head is why I was asking the poster of the lib how it work because it is not working for me.

The code as far as I can see does not allow for interrupt from the chip although I have used it before and it is just a matter of initializing the 23S17 for that mode and how you want it to set the pin.

Once I get it to work I will share the hows and whys and I think it will happen as I have asked for help from 2 sources.