In the video are the two simplest ways: - Method 1: Do not connect (you can choose the number of rounds as you like) - Method 2: with connection (1 round , 2 wire ends connected together ...
The instantiated switch state is updated independently by a standard FreeRTOS software timer (or ESP-IDF FreeRTOS in this case), that keeps the state of the objects created constantly refreshed ...