Skip to content

Commit 2d5ce46

Browse files
committed
Add Lanbon L9 v3.3
1 parent 103e54c commit 2d5ce46

3 files changed

Lines changed: 75 additions & 4 deletions

File tree

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- out: guition
4040
env: esp32-s3-4848s040_16MB -e guition-jc4827w543c_4MB -e guition-jc8048w50n_16MB
4141
- out: lanbon
42-
env: lanbon_l8 -e lanbon_l9
42+
env: lanbon_l8 -e lanbon_l9_v1_0 -e lanbon_l9_v3_3
4343
- out: lilygo-ttgo
4444
env: "lilygo-lily-pi_st7796 -e lilygo-lily-pi_ili9481 -e ttgo-t7-v1_5_ili9341_4MB -e ttgo-t7-v1_5_ili9341_16MB"
4545
- out: lolin
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; Lanbon L9 with ST7789 ;
33
;***************************************************;
44

5-
[env:lanbon_l9]
5+
[env:lanbon_l9_v1_0]
66
extends = arduino_esp32s3_v2, flash_16mb
77
board = esp32-s3-devkitc-1
88
board_build.arduino.memory_type = qio_opi
@@ -11,7 +11,7 @@ build_flags =
1111
${env.build_flags}
1212
${esp32s3.build_flags}
1313
${esp32s3.ps_ram}
14-
-D HASP_MODEL="Lanbon L9"
14+
-D HASP_MODEL="Lanbon L9 v1.0"
1515
-D LANBONL9
1616
;-D ARDUINO_USB_MODE=0
1717
;-DARDUINO_USB_CDC_ON_BOOT
@@ -62,7 +62,7 @@ lib_deps =
6262
${esp32s3.lib_deps}
6363
${arduino_esp32s3_v2.lib_deps}
6464
${arduinogfx.lib_deps}
65-
${goodix.lib_deps}
65+
;${goodix.lib_deps}
6666
${ft6336.lib_deps}
6767

6868
lib_ignore =
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
;***************************************************;
2+
; Lanbon L9 v3.3 ;
3+
; PCB: L9_HS_CB_V3.3 ;
4+
; MCU: ESP32-WROVER-IE / ESP32-WROVER-IU ;
5+
; Display : ST7789V 170x320 (SPI) ;
6+
; Touch : FT5x06/FT6x36 @0x38 (I2C) ;
7+
;***************************************************;
8+
9+
[env:lanbon_l9_v3_3]
10+
; Match Lanbon L8 working pattern: use arduino_esp32_v2 base + psram helper
11+
extends = arduino_esp32_v2, flash_16mb
12+
board = esp-wrover-kit
13+
14+
build_flags =
15+
-D HASP_MODEL="Lanbon L9 v3.3"
16+
${arduino_esp32_v2.build_flags}
17+
${esp32.ps_ram}
18+
19+
;region -- TFT/LGFX build options ------------------------
20+
-D LGFX_USE_V1=1
21+
-D ST7789_DRIVER=1
22+
23+
-D TFT_WIDTH=170
24+
-D TFT_HEIGHT=320
25+
-D TFT_ROTATION=0
26+
27+
; Display behavior
28+
-D TFT_INVERSION_ON
29+
-D TFT_RGB_ORDER=0 ; BGR (same convention used in L8: 0=BGR, 1=RGB) :contentReference[oaicite:1]{index=1}
30+
-D TFT_OFFSET_X=35
31+
-D TFT_OFFSET_Y=0
32+
33+
; SPI pins (v3.3)
34+
-D TFT_SCLK=26
35+
-D TFT_MOSI=14
36+
-D TFT_CS=25
37+
-D TFT_DC=27
38+
-D TFT_RST=-1
39+
-D TFT_BCKL=21
40+
41+
-D SPI_FREQUENCY=40000000
42+
-D SUPPORT_TRANSACTIONS
43+
44+
; Touch (I2C) - use LGFX touch like L8
45+
-D TOUCH_DRIVER=0x6336
46+
-D HASP_USE_LGFX_TOUCH=1
47+
-D TOUCH_OFFSET_ROTATION=0
48+
49+
-D TOUCH_SDA=4
50+
-D TOUCH_SCL=0
51+
-D TOUCH_IRQ=-1
52+
-D TOUCH_RST=-1
53+
54+
-D I2C_TOUCH_FREQUENCY=100000
55+
-D I2C_TOUCH_ADDRESS=0x38
56+
57+
; NOTE: GPIO15 (motion input), GPIO32 (relay), GPIO35 (pulse input-only)
58+
; are configured at runtime (JSON/WebUI/MQTT). Don’t force them here unless
59+
; you also update the corresponding openHASP GPIO defaults for this model.
60+
61+
lib_deps =
62+
${env.lib_deps}
63+
${esp32s3.lib_deps}
64+
${arduino_esp32s3_v2.lib_deps}
65+
${lovyangfx.lib_deps}
66+
67+
lib_ignore =
68+
${env.lib_ignore}
69+
${esp32s3.lib_ignore}
70+
${arduino_esp32s3_v2.lib_ignore}
71+
;endregion

0 commit comments

Comments
 (0)