Giter Site home page Giter Site logo

Comments (3)

wollewald avatar wollewald commented on June 15, 2024 1

If you don't pass the reset pin, 99 will be applied now.

from mcp23017_we.

wollewald avatar wollewald commented on June 15, 2024

The reset pin of the mcp23s17 is pin no 18. The reset pin is only used in init() to ensure that all registers are set to default if you upload a new sketch without disconnecting from power. What I have implemented a week ago and not yet documented is a software reset. If you pass a reset pin with a number >= 99 the software reset will carried out instead of the hardware reset. Like this:

#define RESET_PIN 99
#define MCP_ADDRESS 0x20 // (A2/A1/A0 = LOW)
MCP23S17 myMCP = MCP23S17(CS_PIN, RESET_PIN, MCP_ADDRESS);

The software reset just sets all registers to default values by SPI/I2C commands.
If you don't connect the reset pin to a real pin, then you should connect it to HIGH level.

from mcp23017_we.

thijstriemstra avatar thijstriemstra commented on June 15, 2024

Thanks for the feedback. An additional mcp23s17 constructor where reset_pin = 99 would be nice. Tested with 99 (instead of 27) and everything seems to work ok.

from mcp23017_we.

Related Issues (19)

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.