Go Down

Topic: Glad to announce my SwitchPack is finally released (Read 418 times) previous topic - next topic


Aug 19, 2017, 12:46 am Last Edit: Aug 19, 2017, 12:47 am by jbellavance
After releasing my EdgeDebouncer, I decided to create a complete switch toolbox using this debouncer.

With 17 example sketches and a complete 14 page Tutorial.

All switches are debounced and protected against EMF interferences by the lightning fast EdgeDebouncer algorithm.

9 classes: with 8 of them inheriting from 1 to 3 other classes
  • Debounce: debouncePin()
  • Contact: open(), closed(), rose(), fell()
  • Click: clicked()
  • DoubleClick: clickCount(), setMaxClicks(), setLimit()
  • Toggle: readStatus(), getStatus(), setStatus()
  • TimedClick: wasLastRead(), clickTime(), timeSinceLastClick()
  • Repeater: repeatRequired(), setStart(), setBurst()
  • ModeSwitch: readMode(), getMode(), setMode(), resetAfter()
  • Encoder: setPins(), setModes(), stepsPerClick(), getRotation(), getCount(), setCount(), resetCount()

Find it here

Hope you will find this Library usefull for your projects.



I also just released the EdgeDebounceLite Library.

Just replace digitalRead() with debounce.pin()

You can find it here



You must be fully retired, kind of nice to do what you want to do now (what wife will let you do ;) ).

Will look at the work in a few days.

Thanks for sharing your work.

Switch and LED on the same pin.

No technical PMs.
The last thing you did is where you should start looking.


Aug 20, 2017, 03:26 pm Last Edit: Aug 20, 2017, 03:28 pm by jbellavance
Hi there,

Yes, 8.6us is just about the normal rise/fall time for a LED.

Take look at this thread.


EDIT: nope, it is in the ns range

Go Up