Code Monkey home page Code Monkey logo

Comments (6)

caternuson avatar caternuson commented on August 22, 2024

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:

image

The changes in #64 include switching to LOW/HIGH.

from adafruit-mcp23017-arduino-library.

caternuson avatar caternuson commented on August 22, 2024

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.

lamello avatar lamello commented on August 22, 2024

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.

caternuson avatar caternuson commented on August 22, 2024

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.

caternuson avatar caternuson commented on August 22, 2024

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.

kenttsai avatar kenttsai commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.