Skip to content

Changes specific to the use with ESP32 MCUs - #1

Open
fdxrate wants to merge 5 commits into
monoidk:masterfrom
fdxrate:master
Open

Changes specific to the use with ESP32 MCUs#1
fdxrate wants to merge 5 commits into
monoidk:masterfrom
fdxrate:master

Conversation

@fdxrate

@fdxrate fdxrate commented Oct 2, 2022

Copy link
Copy Markdown

The changes in this Pull request do not correct any errors or mistakes in the library but rather are made to enable the library to be used with ESP32 mcu's specifically. The library as it is, communicates correctly with all the registers including MCP23S08_IOCON.

@fdxrate

fdxrate commented Oct 2, 2022

Copy link
Copy Markdown
Author

Hi, the first commit description about using the DeviceOpCode is possibly misleading as in the 'begin' section to set haen DeviceOpCode is not needed. I have tested your code and it does work correctly to set haen. In my pull request I have simply replaced your code with the function available in the .cpp file to simplify the code.

Initially when I thought your haen code was not working it turned out to be the CS pinmode was not initialised at that stage, which I think is purely an ESP32 requirement.

I like the new constructor which now includes the SPI_class and the HAEN logic, allowing for greater flexible of use.

Thanks for your input and it all seems to be working just fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant