Comments (3)
If you don't pass the reset pin, 99 will be applied now.
from mcp23017_we.
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.
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)
- 4 Rotary encoders HOT 11
- How to use an AC solid state relay to also switch DC? HOT 7
- Support for MCP23S17 HOT 12
- add LICENSE HOT 1
- setPinMode vs setPortMode -> INPUT_PULLUP HOT 2
- Using multiple MCP23S17 devices does not work HOT 10
- v1.6.1 breaks something HOT 3
- license type not mentioned in headers
- random pins are driven HOT 3
- Multiple MCP23017 outputs don't always work HOT 4
- MCP23S17/MCP23017 missing two input bit of the 16Bit Chip HOT 5
- How to check if MCP23017 is connected and responsive? HOT 3
- Compile warnings HOT 2
- Make reset pin optional HOT 7
- How to change I2C address HOT 4
- Invert pin state HOT 5
- GPA7 and GPB7 not work as input HOT 7
- Works for Arduino? HOT 3
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 mcp23017_we.