BoolDebounce Op

BoolDebounce

Debounce a boolean based on time and direction


-First input is the boolean to debounce

-Second input is the "time" of the debounce (in seconds): how many time to wait to pass boolean to output.

-Third input is "direction". The direction input will determine how the debounce is applied based on the changes in the boolean input value:

direction 0: Debounce on any direction. direction 1: Debounce only when the input changes from false to true. direction 2: Debounce only when the input changes from true to false.


Full Name
  • Ops.Patch.PNq9A3c.BoolDebounce
VisibilityLicense
  • MIT
Author


Arduino to cables

A simple and reliable method for configuring Arduino pins, sending data, and reading sensor values using the MIDI interface on an Arduino board. Works on WebMidi enabled browser like Chrome, Firefox, Edge and Arduino boards with an ATmega32U4 microcontroller:

  • Arduino Leonardo
  • Arduino Micro
  • Arduino Esplora
  • Arduino Pro Micro ...

Technical Infos on MIDI Channel Usage:

  • Channel 0: Sends the lower 7 bits of analog sensor values (0-127).
  • Channel 1: Sends the upper 3 bits of analog sensor values (extending resolution to 10 bits).
  • Channel 4: Controls the output mode ( 0: PWM / 1: Servo / 2: DMX )
Open In Editor

INPUT PORTS


value (Number: boolean)

Boolean value which will be copied to the output port

time (Number)

How many time to wait to pass boolean to output (in second)

direction index (Number: integer) both  up  down 

OUTPUT PORTS


result (booleanNumber)

Changelog

Patches using BoolDebounce

  • Examples
  • Public
  • My Patches