ButtonToSwitch

Implement simple to complex switches out of simple buttons -or any other momentary digital input signal- this library with an easy consistent API will take care of debouncing, deglitching, toggle on-off, keep activation times in a completely unnatended manner.

Author
Gabriel D. Goldman
Website
https://github.com/GabyGold67/ButtonToSwitch_AVR
Category
Signal Input/Output
License
GPL 3.0
Library Type
Contributed
Architectures
Any

This Arduino library includes classes that lets you implement all kind of switches out of simple buttons (Momentary Push Buttons or MPBs), PIR sensors, RFID readers or any other source of momentary digital signals. Add any kind of switch to a project by using simple MPBs and this library to simulate the internal mechanism of each of them, starting from a Debounced Push Button and extending to Delayed Start Push Button, Toggle (Latched) Push Button, Time Latched Push Button, External Release Latched Push Button, Staircase Timed Button, On/Off/Dimmers, and more... The library gives the embedded behavior to build more complex switches classes by simple composition: menu panels, rotary enum switches, etc. Now includes on-line simulations for most of the example files (simulator provided by WOKWI.com)

Downloads

Filename Release Date File Size
ButtonToSwitch-4.0.1.zip 2024-11-18 1.09 MiB
ButtonToSwitch-4.0.0.zip 2024-10-15 1.05 MiB