diff --git a/libraries/MCP23008/README.md b/libraries/MCP23008/README.md index eac9bc19..2e06c716 100644 --- a/libraries/MCP23008/README.md +++ b/libraries/MCP23008/README.md @@ -55,7 +55,9 @@ Can be overruled with Wire0..WireN. ### Single pin interface -- **bool pinMode(uint8_t pin, uint8_t mode)** pin = 0..7, mode = INPUT, OUTPUT. Returns true if successful. +- **bool pinMode(uint8_t pin, uint8_t mode)** pin = 0..7, mode = INPUT, OUTPUT. +0xFF is all pins are input, 0x1F are 5 inputs and 3 outputs. +Returns true if successful. - **bool digitalWrite(uint8_t pin, uint8_t value)** pin = 0..7, value = LOW(0) HIGH (!0). Returns true if successful. - **uint8_t digitalRead(uint8_t pin)** pin = 0..7, returns LOW or HIGH, might set the lastError(); - **bool setPolarity(uint8_t pin, bool reversed)** pin = 0..7, set reversed flag. Returns true if successful. diff --git a/libraries/MCP23008/examples/MCP23008_digitalRead/MCP23008_digitalRead.ino b/libraries/MCP23008/examples/MCP23008_digitalRead/MCP23008_digitalRead.ino index fb4e8288..b4e3137f 100644 --- a/libraries/MCP23008/examples/MCP23008_digitalRead/MCP23008_digitalRead.ino +++ b/libraries/MCP23008/examples/MCP23008_digitalRead/MCP23008_digitalRead.ino @@ -20,7 +20,7 @@ void setup() Wire.begin(); MCP.begin(); - MCP.pinMode8(0x00); + MCP.pinMode8(0xFF); Serial.println("TEST digitalRead(pin)"); for (int pin = 0; pin < 8; pin++) @@ -37,4 +37,4 @@ void loop() } -// -- END OF FILE -- +// -- END OF FILE --