Description The Byte Switch Unit is an 8-channel toggle-switch input module with 8 independent DPDT switches and 9 WS2812C-2020 RGB LEDs. It uses an STM32G031G8U6 controller and communicates over I2C, giving a compact way to add physical state input and color feedback to M5Stack projects. The Byte Switch Unit includes two onboard Port A I2C Grove interfaces, so multiple modules can be cascaded on the same bus for larger control panels. It can detect switch positions and provide dynamic light status feedback for smart home panels, game controllers, education benches, status control devices, and interactive installations. Features Byte Switch Unit provides 8-channel toggle-switch input for physical state control. 9 WS2812C-2020 RGB LEDs support direct visual feedback and status indication. STM32G031G8U6 32-bit ARM Cortex-M0+ controller runs up to 64MHz. I2C communication uses address 0x46 for host control and data reading. Dual Grove Port A connectors support I2C bus cascading expansion. Supported development platforms include UiFlow1, UiFlow2, and Arduino IDE. Specifications MCU STM32G031G8U6, 32-bit ARM Cortex-M0+ core, 64MHz Toggle switch 8 independent toggle switches, DPDT type RGB LED 9 x WS2812C-2020 LEDs Interface I2C, address 0x46 Grove port 2 x Port A connectors for I2C bus cascading expansion Standby power DC [email protected] Operating temperature 0 to 40 C Product size 88.0 x 24.0 x 19.6mm Product weight 12.2g Package size 170.0 x 120.0 x 20.6mm Gross weight 29.3g Applications Smart home control panels that need clear physical switch states. Game and entertainment controllers with LED state feedback. Education and laboratory platforms for I2C input experiments. Status control and feedback devices for clear hardware-mode indication. Portable device debugging tools and small-instrument user interfaces. Interactive exhibitions or scene-control systems with cascaded modules. Product List 1 x Byte Switch Unit 1 x HY2.0-4P Grove cable (20cm) 1 x DIY sticker Other Content For system design, the Byte Switch Unit is useful when software needs a stable, visible hardware state rather than a momentary button. The toggle switches can represent modes, channels, enable states, or debugging options, while the RGB LEDs show feedback next to the input area. When several Byte Switch Unit modules are cascaded, reserve the I2C bus layout carefully and keep cable routing short enough for reliable communication. The onboard Grove connectors make it easy to combine the module with M5Stack controllers and other Port A accessories. Resources Byte Switch Unit Documentation Hardware Schematic PDF Arduino Example Code Repository UIFlow MicroPython Reference Internal Firmware Repository Communication Protocol PDF STM32G031G8 Datasheet PDF STM32G031G8 MCU Information Page FAQ What does this module read? It reads 8 independent toggle-switch inputs and reports the switch states to the host over I2C. How does the module show feedback? The module includes 9 WS2812C-2020 RGB LEDs that can be controlled to display status, modes, or channel feedback. Can multiple modules be connected together? Yes. The two Port A Grove connectors support I2C bus cascading, making the module suitable for larger switch panels. Which development platforms are supported? The module is documented for UiFlow1, UiFlow2, and Arduino IDE workflows.