adafruit / Adafruit-MCP23017-Arduino-Library

Arduino Library for Adafruit MCP23017
Other
359 stars 204 forks source link

Please add support for reading a “bank” all at once #82

Closed sam43054 closed 2 years ago

sam43054 commented 2 years ago

Thanks for your work in this, would love if the Arduino examples included support for reading an entire bank of inputs all at once and gave back the binary result

Thanks

todbot commented 2 years ago

I believe you can, using the .readGPIOA() or .readGPIOB() methods.

caternuson commented 2 years ago

Yep. For the MCP23x17, use readGPIOA(), readGPIOB() or readGPIOAB(). For the MCP23x08, use readGPIO()