Comments (6)
Yah, the MCP really only supports LOW/HIGH and not RISING/FALLING, since you can't clear the interrupt in that mode. It's a simple assert-if-comparison-true logic:
The changes in #64 include switching to LOW/HIGH.
from adafruit-mcp23017-arduino-library.
Please checkout the new 2.0.0 release:
https://github.com/adafruit/Adafruit-MCP23017-Arduino-Library/releases/tag/2.0.0
FALLING/RISING have been replaced with HIGH/LOW. CHANGE remains the same. These are (hopefully) inline with the Arduino spec:
https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt/
from adafruit-mcp23017-arduino-library.
Thank you for the announcement.
The interrupt example is different, but is now good?
I don't think so. What's the value of an interrupt example which don't use the interrupt?
The interrupt example is to simplistic to be really helpful or practical.
from adafruit-mcp23017-arduino-library.
What would you suggest? The example can be updated. Idea with current one is it's very simple - just shows how to generally configure the INTA/B pin to fire.
from adafruit-mcp23017-arduino-library.
Closing due to lack of response. Can reopen if needed. Not really a library issue, just commentary about existing example.
from adafruit-mcp23017-arduino-library.
The example can be updated with an interrupt service routine so that it is more useful to general folks.
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.