Glad to announce my SwitchPack is finally released

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

I also just released the EdgeDebounceLite Library.

Just replace digitalRead() with debounce.pin()

You can find it here

Jacques

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

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

.

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

Hola, quizás usted me pueda ayudar. Busco anular el efecto rebote en mi proyecto, es una caja inútil.... con:
1 Arduino Nano, 1 interruptor de palanca de 3 patas, 2 servosmotores, 1 motor y un sharp movimiento, el proyecto lo obtuve de aquí:

El problema es que es un proyecto de hace mucho tiempo y no consigo contactar con el autor para que me ayude a terminar!

He visto que usted trabaja con Debounce, sé que es eso lo que le falta a mi código pero....no sé ponerlo!
Podría ayudarme por favor?

Gracias

Hi, maybe you can help me. I seek to cancel the rebound effect in my project, it is a useless box .... with:
1 Arduino Nano, 1 3-leg toggle switch, 2 servosmotors, 1 motor and a sharp movement, I got the project from here:

The problem is that it is a project of a long time ago and I can not contact the author to help me finish!

I've seen that you work with Debounce, I know that's what my code lacks but ... I do not know how to put it!
Can you help me please?

Thank you

What are the symptoms that make you think that bouncing is your problem?