When the stepper stops, the current flow also stops - Wokwi ESP32, STM32, Arduino Simulator