Files
gy30test/platformio.ini

84 lines
1.7 KiB
INI
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
; CYD ESP32-2432S028R �LVGL GY30(BH1750) 光照仪表�
; GY30 SDA -> GPIO22, SCL -> GPIO27
[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
claws/BH1750@^1.3.0
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}
; 颜色å<C2B2><C3A5>相版本(若画é<C2BB>¢è‰²å<C2B2><C3A5>/å<>‘白å<C2BD>¯æ”¹ç”¨æ­¤çŽ¯å¢ƒï¼?
[env:cyd_28r_inv]
build_flags =
${env.build_flags}
-D TFT_INVERSION_ON=1
; USB-C å<>Œå<C592>£ / 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
; Optional 3.5" CYD ESP32-3248S035 (ST7796 resistive). Default remains cyd_28r.
; Build: pio run -e cyd_35r
[env:cyd_35r]
build_flags =
${env.build_flags}
-U ILI9341_2_DRIVER
-D ST7796_DRIVER=1
-U TFT_WIDTH
-U TFT_HEIGHT
-D TFT_WIDTH=320
-D TFT_HEIGHT=480
-U TFT_BL
-D TFT_BL=27
-D CYD_BOARD_3248S035=1