This is my first time I use github and release it to a arduino library. For any suggestions, please let me know. andreas.rosenheim@gmail.com.
Sequencer is the same as state machine and step chains. It has nothing to do with a sequencer for music.
If you want to use a sequence chain, you have very often to use timing. Then you need to use "SequenceTiming."
Advantage
- endDelay of every step
- Error when time of one step is elapsed is possible.
- Error when the next step was to early activated is possible.
- It is possible to force a step, this will also reset the errors.
- Measurement how long a step was active.
- All is "non blocking" timing code.
- Change of timing at runtime is possible.
Disadvantage
- a little bit slower than self-made switch-case sequence chains (µs-range)
- more memory is necessary, because of the timing for every step
Information
- You should be familiar with switch case with enum-class. This is still needed. You can have a look at:
- Debounce of a switch-button is not included, but normally at a sequence chain not necessary.
- Timing over more steps is not included
Documentation of this SequenceTiming library
https://github.com/Andreas1313/SequenceTiming/blob/main/docs/SequenceTiming.md
Keywords
step, sequence, sequencer, chain, state, machine, time, based, automation, switch, case
License
Copyright (c) 2025. Andreas1313. 83022 Rosenheim. Germany. No:250803_sT_C_0_132
Licensed under CC BY-NC-SA 4.0: https://creativecommons.org/licenses/by-nc-sa/4.0/.\
-Credit required -Share alike -No warranty provided
-Free for private use.
-Free for prototype use, but send an e-mail that you want to use it for prototype to andreas.rosenheim@gmail.com. You can directly start. You do not have to wait for an answer.
-Contact for commercial use: andreas.rosenheim@gmail.com.(You only have to donate to "Doctors Without Borders", or similar institution. Which should be tax-deductible)