my rotary code (approved) - Wokwi ESP32, STM32, Arduino Simulator