14 #ifndef _Adafruit_MCP23017_H_
15 #define _Adafruit_MCP23017_H_
17 #include <driver/i2c.h>
29 void pinMode(uint8_t p, uint8_t d);
31 void pullUp(uint8_t p, uint8_t d);
38 void setupInterrupts(uint8_t mirroring, uint8_t open, uint8_t polarity);
43 uint8_t bitForPin(uint8_t pin);
44 uint8_t regForPin(uint8_t pin, uint8_t portAaddr, uint8_t portBaddr);
46 uint8_t readRegister(uint8_t addr);
47 void writeRegister(uint8_t addr, uint8_t value);
53 void updateRegisterBit(uint8_t p, uint8_t pValue, uint8_t portAaddr, uint8_t portBaddr);
Controls the expander pins.
Definition: Adafruit_MCP23017.h:24
uint8_t getLastInterruptPin()
Definition: Adafruit_MCP23017.cpp:299
uint8_t digitalRead(uint8_t p)
Definition: Adafruit_MCP23017.cpp:264
uint16_t readGPIOAB()
Definition: Adafruit_MCP23017.cpp:164
Adafruit_MCP23017(uint8_t addr, i2c_port_t port, gpio_num_t sda, gpio_num_t scl)
Definition: Adafruit_MCP23017.cpp:131
uint8_t readGPIO(uint8_t b)
Definition: Adafruit_MCP23017.cpp:198
void writeGPIOAB(uint16_t)
Definition: Adafruit_MCP23017.cpp:228
void digitalWrite(uint8_t p, uint8_t d)
Definition: Adafruit_MCP23017.cpp:242
void pinMode(uint8_t p, uint8_t d)
Definition: Adafruit_MCP23017.cpp:157
void pullUp(uint8_t p, uint8_t d)
Definition: Adafruit_MCP23017.cpp:260
~Adafruit_MCP23017()
Definition: Adafruit_MCP23017.cpp:151
uint8_t getLastInterruptPinValue()
Definition: Adafruit_MCP23017.cpp:318
void setupInterrupts(uint8_t mirroring, uint8_t open, uint8_t polarity)
Definition: Adafruit_MCP23017.cpp:281