Display and LEDs
The BMS state can be indicated using either WS2812 RGB LEDs or an OLED display, selected by the dispmode parameter. A button is available in both configurations for controlling the BMS.
warning
A reboot is required after changing the dispmode parameter.
dispmode
WS LED Parameters
bright
WS LED brightness multiplier.
bar_invert
Inverts the LED bar direction (SOC bar increases towards the button when enabled).
WS LED Behavior
The 4 RGB LEDs display the battery SOC as a bar graph. The color indicates the current BMS state:
| Color | State |
|---|---|
| Green | DSC port on (running) |
| Green blinking | CHG port on (charging) |
| Blue | Idle |
| Orange pulsing | Error / Protect / Init |
| Red pulsing | Critical error / Fail |
Button Control (WS LED mode)
- Short press — wake LEDs and show SOC
- Double press — toggle USB charging output
- Long press — toggle BMS ports on/off
OLED Display
The OLED display (128x64 SH1106) shows detailed BMS information across multiple pages. Navigate pages with a short press of the button.
Display Pages
| Page | Content |
|---|---|
| 0 | Overview — SOC, voltage, current, temperature, state |
| 1 | Balancer — cell voltages, balancing status, min/max |
| 2 | Ports — DSC and CHG port voltage, current, BMS temp |
| 3 | Limiter — active limitations and limiter values |
| 4 | BEST — energy, SOC, SOH, cycle count |
| 5 | Atmo — atmospheric sensor (temperature, humidity, pressure) |
| 6 | Last protect events |
| 7 | Last error events |
Button Control (OLED mode)
- Short press — next page
- Long press on pages 0, 2, 3, 4, 5 — toggle BMS ports on/off
- Long press on page 1 — toggle balancer override
- Long press on page 3 — toggle screen always-on
- Long press on page 4 — reset BEST estimator
- Long press on pages 6, 7 — reboot BMS
States
| State | Type | Description |
|---|---|---|
btn_state | UINT32 | Button state: 0 = released, 1 = pressed, 2 = double press, 10 = long press |
Shell Commands
| Command | Description |
|---|---|
led [position] [red] [green] [blue] | Set WS LED color manually. Call led without arguments to return to automatic mode. |