Go Down

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

jbellavance

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.

Jacques






jbellavance

I also just released the EdgeDebounceLite Library.

Just replace digitalRead() with debounce.pin()

You can find it here

Jacques

larryd

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.

Edit:
FYI
Switch and LED on the same pin.
https://forum.arduino.cc/index.php?topic=445951.msg3336467#msg3336467




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

jbellavance

#3
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.

Jacques

EDIT: nope, it is in the ns range

Go Up