Skip to main content
Hardware SDK

L10 · Developer guide

LANBON Wi-Fi editions. Match the panel label. Relay and curtain control require a matching base.

Package 0.5.0 contains both screens. The tested demo displays 0.5.0-dev.2. Select files by model.

Download SDK →

Prepare the panel

Use an ESP-IDF 5.5.4 shell, matching tools, USB serial adapter and regulated low-voltage supply. Isolate mains and verify absence of voltage. Release the panel from below as shown, protecting glass and ribbon. Program only the detached low-voltage panel. Stop if connectors differ.

ESP-IDF 5.5.4 ↗
L10-HSU · Prepare the panelL10-HSU · P1L10-HSU · P1 IO0 RX TX 5V GND
P1-1   IO0 → GND (BOOT)
P1-2   RX  ← USB TX (3.3 V)
P1-3   TX  → USB RX (3.3 V)
P1-4   +5 V
P1-12  GND

Match P1 orientation to the photo. Serial logic is 3.3 V, panel power is 5 V. To enter download mode, remove low-voltage power, hold IO0 to ground, power up, then release. If connection fails check port, common ground and TX/RX, then repeat.

Back up

Extract locally. Run each line separately in PowerShell at the package root. Replace the sample port and enter the unit MAC from the probe. Use a fresh private folder per device. Stop on any error.

python -m pip install -r tools/requirements.txt
python tools/l10_device.py ports
$port = 'COM13'
$model = 'L10-HSU'
$folder = Join-Path $env:USERPROFILE ('LANBON-private\' + [guid]::NewGuid())
New-Item -ItemType Directory -Path $folder
Write-Host $folder
python tools/l10_device.py plan --model $model
python tools/l10_device.py probe --port $port --out "$folder\probe.json"
$mac = Read-Host 'Device MAC'
python tools/l10_device.py backup --port $port --model $model --out-dir "$folder\original" --confirm-mac $mac

After verifying the full 16 MiB, keep a second copy of the entire directory. If interrupted, check power and USB, re-enter download mode and restart in a fresh folder. Discard incomplete images from consideration.

Run the demo or build your application

Use the supplied images for a first run. After editing main/developer_demo.c, run the build below to replace images and manifest for the selected screen. Run plan again, check the model and hashes, then enter download mode and run flash.

powershell -File tools/build.ps1 -Board us
python tools/l10_device.py plan --model $model
python tools/l10_device.py flash --port $port --model $model --backup "$folder\original\backup.private.json" --confirm-mac $mac --receipts "$folder\receipts"

After verification release IO0 and cycle low-voltage power. Check DISARMED, touch coordinates, three brightness levels and radar transitions. Disconnect power and remove the programmer before fitting the matching base. Test outputs only in a safe setup.

While disarmed select 4 CH, then ARM. Toggle R1–R4, compare register and load, finish with STOP / DISARM. Select CUR, arm and check OPEN, STOP, CLOSE, reversal and the demo’s five-second stop. On FAULT or UNKNOWN isolate power and check the base. Registers report MCU state only.

Both samples passed four-channel switching, readback, disarm, curtain commands and same-unit recovery. The square unit returned to its older SDK, the tall unit to its original LANBON test app. Lamps verified tall-unit relay outputs. Validate motors, travel and endurance separately.

SDK API · docs/CONTROL_API.md

Display · l10_init() · l10_ui_lock() · LVGL · l10_ui_unlock()

Touch · main/developer_demo.c · LVGL

Relays · l10_control_arm() · l10_control_switch_set() · l10_control_read() · l10_control_disarm()

Curtains · l10_control_curtain() · OPEN / STOP / CLOSE

Radar · l10_radar_state() · l10_radar_read()

Backlight · l10_backlight_set(0…100)

Restore this unit

Only run this to roll back. Use the original folder, same device and original MAC in download mode. Restoration overwrites all flash. After verification release IO0, restart and check the original UI, touch and settings. Stop on missing backup or identity mismatch.

$folder = Read-Host 'Original LANBON-private folder path'
$port = Read-Host 'COM port'
$model = 'L10-HSU'
$mac = Read-Host 'Device MAC'
python tools/l10_device.py restore --port $port --model $model --backup "$folder\original\backup.private.json" --confirm-mac $mac --receipts "$folder\receipts" 

Prompt for your coding assistant

Download SDK →