Comments (10)
I have seen this issue too. Root cause was a floating not connected input with a interrupt enabled from previous compile not being reset. This floating interrupt floods the chip/data line with messages making it impossible to even control outputs. Ensure all interrupted pins are high and add code to begin from PR #55 to disable previously interrupted pins or ensure chip is reset.
from adafruit-mcp23017-arduino-library.
@PsuFan thanks for the reply. I am not sure which code you are referring to. Maybe I missed it, if so please let me know. Otherwise it seems that the solution you are referring to has been implemented to the latest version of the library. If I understand this correctly, I will update my version to use this latest fix. Thanks again.
from adafruit-mcp23017-arduino-library.
Yes that is correct, see how the latest version works. A change to the interrupt example was also approved that ensures the interrupt is cleared.
Again ensure all interrupted pins are high (or low) as desired and not floating.
from adafruit-mcp23017-arduino-library.
Ok fantastic!
You mean only the pins actually being used as INT correct? Not all the possible INT pins on the chip. I do have some pins that are part of the INT group but they are being used for other purposes. I would expect those wouldn't be affected.
from adafruit-mcp23017-arduino-library.
Yes the pins you define with mcp.setupInterruptPin(THIS_PIN,FALLING);
from adafruit-mcp23017-arduino-library.
Ok great. Thanks again! I will try that
from adafruit-mcp23017-arduino-library.
@izamoramx Did the suggestions above resolve this?
from adafruit-mcp23017-arduino-library.
@izamoramx Did the suggestions above resolve this?
@caternuson Sorry, I haven't had a chance to test the latest version of the library for this issue as I have to pause on that project to work on others but I am expecting to resume that in the next month or so and will be able to verify if the issue persists or not and get back to you.
from adafruit-mcp23017-arduino-library.
OK, please also update to the 2.0.0 release of the library:
https://github.com/adafruit/Adafruit-MCP23017-Arduino-Library/releases/tag/2.0.0
It changes things a lot.
from adafruit-mcp23017-arduino-library.
Closing. Hoping fixed. Can reopen if still an issue.
from adafruit-mcp23017-arduino-library.
Related Issues (20)
- Not working using new Arduino Nano ESP32 development board HOT 4
- ESP32 LAN8720 MCP23017 cant compile with Asyncwebsockets
- Old Version of Lib in PlatformIO HOT 4
- mcp23S17 software addressing support HOT 7
- Missing migration guide/instructions to the major 2.x release HOT 2
- Does not work with more than 2 MCP23017 on the same bus. HOT 11
- Communicating with chips with I2C addresses does not work HOT 3
- setupInterrupts issue with 8 MCP23017 HOT 1
- MCP23017 not working with Raspberry Pi Pico HOT 4
- Version 2.0.2 does not compile with Teensy 4.1 HOT 4
- Please add support for reading a “bank” all at once HOT 2
- Increased program memory occupancy HOT 1
- Provide access to INTCAP HOT 7
- How to define the Hardware Adress with I²C? HOT 1
- Please include an example for using multiple mcp chips HOT 3
- Adafruit_MCP23XXX::digitalWrite should read/modify/write the output register, not the input register HOT 24
- Support boards with only SPI or Wire (I2C)
- Bulk set gpio direction support HOT 1
- HELP - Multiple MCP23S17 HOT 2
- GPIO7 bug hacking HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit-mcp23017-arduino-library.