DIPSwitch16

Read two 8-position DIP switches via an MCP23017 I/O expander over I2C (Qwiic).

Author
James Pyle
Website
https://github.com/jwpyle3/DIPSwitch16
Category
Sensors
License
MIT
Library Type
Contributed
Architectures
Any

Returns a 16-bit value representing all 16 switch positions (bit=1 means ON). Supports all 8 MCP23017 address variants (0x20-0x27), internal pull-ups, change detection, and per-position queries.

Downloads

Filename Release Date File Size
DIPSwitch16-1.1.0.zip 2026-07-24 261.78 KiB
DIPSwitch16-1.0.0.zip 2026-07-24 15.25 KiB