Code Monkey home page Code Monkey logo

Comments (10)

PsuFan avatar PsuFan commented on August 22, 2024

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.

izamoramx avatar izamoramx commented on August 22, 2024

@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.

PsuFan avatar PsuFan commented on August 22, 2024

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.

izamoramx avatar izamoramx commented on August 22, 2024

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.

PsuFan avatar PsuFan commented on August 22, 2024

Yes the pins you define with mcp.setupInterruptPin(THIS_PIN,FALLING);

from adafruit-mcp23017-arduino-library.

izamoramx avatar izamoramx commented on August 22, 2024

Ok great. Thanks again! I will try that

from adafruit-mcp23017-arduino-library.

caternuson avatar caternuson commented on August 22, 2024

@izamoramx Did the suggestions above resolve this?

from adafruit-mcp23017-arduino-library.

izamoramx avatar izamoramx commented on August 22, 2024

@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.

caternuson avatar caternuson commented on August 22, 2024

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.

caternuson avatar caternuson commented on August 22, 2024

Closing. Hoping fixed. Can reopen if still an issue.

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.