-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make reset pin optional #4
Comments
The reset function is only used by the Init function to ensure that the MCP23017 starts with a defined status. Otherwise, if you reset the ESP32, you might not reset the MCP23017. And then it could still "remember" its status before the ESP32 was reset and cause problems. And of course you need the reset pin if you want to use the reset function. |
But powering down the ESP32 and MCP23017 will reset the MCP23017 right? Unlike the ESP32 reset button? |
Yes that's right. |
thanks! |
oh closed, too soon. For now I modified the library to not change the I commented this out for now: void MCP23017::Init(){
//pinMode(resetPin, OUTPUT);
//reset();
ioConA = B00000000;
// etc.. |
Please try. You can use now: |
awesome, thanks! |
I just found out the MCP203017 reset pin was hooked up to a different pin on the ESP32 than one I specified. But it doesn't seem to have made a difference, everything properly worked anyway. So is the reset pin optional?
The text was updated successfully, but these errors were encountered: