SofaPirate / Plaquette

Object-oriented Arduino library for creative physical computing
https://sofapirate.github.io/Plaquette/
GNU General Public License v3.0
15 stars 4 forks source link

Allow support for a third kind of timer/alarm that will only "fire" once after time has passed (similar to Metro) #96

Open sofian opened 9 months ago

sofian commented 9 months ago

Option 1: Add another type (but how to call it?)

Option 2: Add an option to Alarm, like some kind of "mode"

Option 3: Merge Alarm and Timer together, providing a single class with three modes (like DEFAULT, RAMP and BANG or something).

sofian commented 9 months ago

Another option is:

Option 4: (variation on option 3) get rid of Timer (see #98) - Alarm "bool" / get() operator will by default be the equivalent of BANG or TRIGGER (like Metro) - object will prove other functionalities with progress() and isFinished()