Main pinout
Drag to pan · Ctrl/⌘ + wheel to zoomSwipe up/down to scroll the page · Swipe sideways to pan · Use two fingers to pan and zoom
Show signal routes
The Unit Encoder lets an I²C host read a rotary encoder and its pushbutton and control two RGB LEDs. The red PORT.A socket supplies power and connects the I²C bus.
Pin index
Quickly scan every header pin, port name, supported function and usage note.
| Pin | MCU pin | Types | Notes |
|---|---|---|---|
| GND | Common ground and I²C reference. | |
| Power | Nominal 5 V power input from the host. | |
| I2C | Bidirectional open-drain I²C data. | |
| I2C | Open-drain I²C clock from the host. |
References
Manufacturer references and technical documentation.
| Chip | Role | Manufacturer | Notes | Link |
|---|---|---|---|---|
U135 | Product documentation | M5Stack | PinMap, photographs and specifications. | Datasheet |
Unit Encoder | Reference schematic | M5Stack | J1 numbering, power rails, I²C pull-ups, encoder and SWD. | Datasheet |
Unit Encoder | I²C protocol | M5Stack | Encoder mode and count, button state and RGB controls. | Datasheet |
STM32F030F4P6 | Microcontroller datasheet | STMicroelectronics | TSSOP20 pin assignment and alternate functions. | Datasheet |
M5Unit-Encoder | Arduino library | M5Stack | Library and examples for using the I²C interface. | Datasheet |