Logo
Lanbon L8 5 in 1 LCD Touch Switch
EU US
Model reference: L8-HS
Lanbon L8 5 in 1 LCD Touch
GPIO #Component
GPIO00 None
GPIO01 None
GPIO02 None
GPIO03 None
GPIO04 None
GPIO05 BkLight
GPIO09 None
GPIO10 None
GPIO12 Relay 1
GPIO13 None
GPIO14 Relay 2
GPIO15 None
GPIO16 None
GPIO17 None
GPIO18 OLED Reset
GPIO19 SSPI SCLK
GPIO20 None
GPIO21 ST7789 DC
GPIO22 ST7789 CS
GPIO23 SSPI MOSI
GPIO24 None
GPIO25 SSPI MISO
GPIO26 PWM 1
GPIO27 Relay 3
GPIO6 None
GPIO7 None
GPIO8 None
GPIO11 None
GPIO32 PWM 2
GPIO33 PWM 3
GPIO34 None
GPIO35 Counter 1
GPIO36 None
GPIO37 None
GPIO38 None
GPIO39 ADC Temperature
Template for ESP32
{"NAME":"Lanbon L8","GPIO":[0,0,0,0,0,992,0,0,224,0,225,0,0,0,1024,896,0,6624,6592,864,0,832,416,226,0,0,0,0,417,418,0,352,0,0,0,4736],"FLAG":0,"BASE":1}
Flashing instructions for tasmota32 firmware.


by blakadder

Working:

  • Relays
  • Status LEDs
  • Screen
  • Touch

Not working:

  • Power metering based on pulse counter
  • Temperature measurement incorrect

Solderless Flashing

Solderless flashing instructions.

Download a compiled binary or use Tasmota development branch and set in user_config_override.h

#define USE_I2C
#define USE_DISPLAY
#define USE_SPI
#define USE_DISPLAY_ST7789
#define USE_TOUCH_BUTTONS
#define USE_FT5206
#undef USE_RULES                                
#define USE_SCRIPT                               
#define MAXBUTTONS 16
#define USE_LANBON_L8

Make sure to fully power cycle the device after applying the template.

Apply the template and issue

Backlog DisplayModel 12; DisplayRotate 0; DisplayWidth 240; DisplayHeight 320; DisplayFont 1; DisplayMode 0

Use this basic script to create touch buttons

>D
>B
dt [B1x50y10f2]Lanbon L8
dt [b0:20:60:200:60:10:16:1:3:Relay 1:]
dt [b1:20:140:200:60:10:16:1:3:Relay 2:]
dt [b2:20:220:200:60:10:16:1:3:Relay 3:]

Buttons are automatically assigned to relays.

You have to do further scripting to set behaviour of status LEDs, turn the screen off after a timeout and display more on the screen.

Demo