reverse bits in various ways - Wokwi ESP32, STM32, Arduino Simulator