Page 1 of 1

Library for MCP23S17

Posted: Wed Oct 25, 2017 6:13 pm
by damian_py
Hi everyone,

I had an arduino library for MCP23S17 (just for switching I/O and reading 0/1 sensors), but I need to use it with my FreeRTOS code. Does anyone has used this chip before with ESP32? Is there a library for MCP23017 (in case)?

Thank you for your help,

Damian

Re: Library for MCP23S17

Posted: Thu Oct 26, 2017 4:04 am
by kolban
I once had a go at such a library. My effors are here:

https://github.com/nkolban/esp32-snippe ... P23017.cpp

Re: Library for MCP23S17

Posted: Thu Oct 26, 2017 7:24 am
by permal
damian_py wrote:Hi everyone,
Is there a library for MCP23017 (in case)?
Damian
I have a working implementation for it in my C++ framework: https://github.com/PerMalmberg/Smooth/b ... P23017.cpp

It relies on some other classes to abstract all the I2C administrative tasks and to make the I2C bus thread safe so you'll have to dig around a bit. The code is currently GPL'd (thinking about changing it), but nothing prevents you from looking at and taking inspiration from it. ;)