Add CYD LVGL climate dashboard with DHT11 on GPIO22.
Include always-on UI, README, and a rule to commit and update docs after each change. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
67
platformio.ini
Normal file
67
platformio.ini
Normal file
@@ -0,0 +1,67 @@
|
||||
; CYD ESP32-2432S028R — LVGL 温湿度仪表盘
|
||||
; DHT11 DATA -> GPIO22
|
||||
|
||||
[platformio]
|
||||
default_envs = cyd_28r
|
||||
|
||||
[env]
|
||||
platform = espressif32@6.9.0
|
||||
board = esp32dev
|
||||
framework = arduino
|
||||
monitor_speed = 115200
|
||||
upload_speed = 921600
|
||||
board_build.partitions = min_spiffs.csv
|
||||
lib_deps =
|
||||
lvgl/lvgl@9.2.2
|
||||
bodmer/TFT_eSPI@2.5.43
|
||||
https://github.com/PaulStoffregen/XPT2046_Touchscreen.git
|
||||
beegee-tokyo/DHT sensor library for ESPx@^1.19
|
||||
extra_scripts = pre:scripts/exclude_lvgl_asm.py
|
||||
build_flags =
|
||||
-D CORE_DEBUG_LEVEL=0
|
||||
-D USER_SETUP_LOADED=1
|
||||
-D USE_HSPI_PORT=1
|
||||
-D ILI9341_2_DRIVER=1
|
||||
-D TFT_WIDTH=240
|
||||
-D TFT_HEIGHT=320
|
||||
-D TFT_MISO=12
|
||||
-D TFT_MOSI=13
|
||||
-D TFT_SCLK=14
|
||||
-D TFT_CS=15
|
||||
-D TFT_DC=2
|
||||
-D TFT_RST=-1
|
||||
-D TFT_BL=21
|
||||
-D TFT_BACKLIGHT_ON=HIGH
|
||||
-D SPI_FREQUENCY=40000000
|
||||
-D SPI_READ_FREQUENCY=20000000
|
||||
-D LOAD_GLCD=1
|
||||
-D LOAD_FONT2=0
|
||||
-D LOAD_FONT4=0
|
||||
-D LOAD_FONT6=0
|
||||
-D LOAD_FONT7=0
|
||||
-D LOAD_FONT8=0
|
||||
-D LOAD_GFXFF=0
|
||||
-D SMOOTH_FONT=0
|
||||
-D TOUCH_CS=-1
|
||||
-D LV_CONF_INCLUDE_SIMPLE=1
|
||||
-I include
|
||||
|
||||
; 标准 CYD 2.8" 电阻屏 (ILI9341)
|
||||
[env:cyd_28r]
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
|
||||
; 颜色反相版本(若画面色偏/发白可改用此环境)
|
||||
[env:cyd_28r_inv]
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
-D TFT_INVERSION_ON=1
|
||||
|
||||
; USB-C 双口 / 7789 变体
|
||||
[env:cyd_28_st7789]
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
-U ILI9341_2_DRIVER
|
||||
-D ST7789_DRIVER=1
|
||||
-D TFT_RGB_ORDER=TFT_BGR
|
||||
-D TFT_INVERSION_ON=1
|
||||
Reference in New Issue
Block a user