Comments (4)
Also posted here:
https://forums.adafruit.com/viewtopic.php?t=203060
from adafruit-mcp23017-arduino-library.
The adafruit forum thread refer to the same problem but didn't mention any possible solution. That's I try to push with this issue.
from adafruit-mcp23017-arduino-library.
I did also open a ticket with the microchip support in order to know if the other I2C members of the MCP230XX family like MCP23009 and MCP23018 are also affected or not.
Please notice that the MCP230XX start with all gpio as inputs so the bug can occur even if we don't use the 7th bit in our project. To avoid any problem you may have to set GPIOs 7 to output or activate internal pullup to avoid floating state on this gpio before any reading of the gpio state.
The other solution may be to never read the gpio state register but only use the interrupt capture register which is not affected by the real time change that cause the I2C crash.
from adafruit-mcp23017-arduino-library.
I try to reproduce this I07 bug by feeding a pwm signal into the GPIO7 of a MCP23008 and was unable to get any I2C crash. Btw I also tested the getCapturedInterrupt() method and it works great so definitively a good workout for this potential problem.
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
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.