DIP Switch - Encoding the states into a number - Wokwi ESP32, STM32, Arduino Simulator