# Sequencing events in a loop-Blink once/Fade/repeat

**URL:** <https://forum.arduino.cc/t/sequencing-events-in-a-loop-blink-once-fade-repeat/1087436>\
**Category:** Programming\
**Created:** [February 7, 2023, 7:54pm UTC](https://forum.arduino.cc/t/sequencing-events-in-a-loop-blink-once-fade-repeat/1087436 "2023-02-07T19:54:01Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![StefanL38](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/stefanl38/32/713548_2.png) [@StefanL38](https://forum.arduino.cc/u/StefanL38)\
**Post date:** [February 7, 2023, 8:14pm UTC](https://forum.arduino.cc/t/sequencing-events-in-a-loop-blink-once-fade-repeat/1087436/3 "2023-02-07T20:14:02Z")

</div>

If you want to have more than two parts in your sequence you should use a switch-case- **break;** -statement.

> [@A Demo-Code explaining the switch-case state-machine and how to do things (almost) in parallel](https://forum.arduino.cc/t/a-demo-code-explaining-the-switch-case-state-machine-and-how-to-do-things-almost-in-parallel/888172):
>
> Hi everybody, if you look at the end of this first posting you see a list of links that show where this tutorial was used as a link. Go through this list to find additional information on how to apply this code This democode requires only the pure microcontroller without any hardware. You just open the serial monitor to watch the behaviour of the code. From time to time I enjoy writing demo-codes that want to explain programming-functionalities. There are a lot of different approachs to expl…

best regards Stefan

---

_[View the full topic](https://forum.arduino.cc/t/sequencing-events-in-a-loop-blink-once-fade-repeat/1087436)._
