SwitchBank

Debounced N-bit switch bank with polarity control, edge helpers, and snapshots.

Author
Little Man Builds (Darren Osborne)
Maintainer
Little Man Builds
Website
https://github.com/LittleManBuilds/SwitchBank
Github
https://github.com/littlemanbuilds/SwitchBank
Category
Signal Input/Output
License
MIT
Library Type
Contributed
Architectures
avr, megaavr, samd, esp32, esp8266, stm32, teensy, rp2040

Header-only, Arduino-friendly library for DIP/slide/rocker banks (1..32 bits). Features per-bit debouncing, compile-time or runtime polarity, latch modes (ManualClear/ClearOnRead), optional scan throttling, rising/falling edge masks, POD snapshots, and an optional on-commit callback. Flexible reader callbacks support GPIO or expanders (for example MCP23017), with side-effect-free constructors/factories and a fluent builder. ESP32-S3 is the primary hardware-tested target; other listed architectures are intended compile-validation targets. Call sync() once after IO init to establish a clean baseline (no edges on boot).

Downloads

Filename Release Date File Size
SwitchBank-1.1.0.zip 2026-06-02 32.60 KiB
SwitchBank-1.0.2.zip 2026-02-11 31.15 KiB
SwitchBank-1.0.1.zip 2026-01-30 31.91 KiB
SwitchBank-1.0.0.zip 2026-01-17 30.23 KiB