T-Display-S3/platformio.ini
2024-01-31 16:15:40 +08:00

80 lines
1.9 KiB
INI

; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and example
; https://docs.platformio.org/page/projectconf.html
[platformio]
; default_envs = Arduino_GFX_PDQgraphicstest
default_envs = Arduino_GFXDemo
; default_envs = factory
; default_envs = lv_demos
; default_envs = nes
; default_envs = sd
; default_envs = tft
; default_envs = TFT_Rainbow
; default_envs = touch_test
; default_envs = usb_hid_pad
; default_envs = ota
; default_envs = SerialExample
; default_envs = T-Display-S3-MIDI
; default_envs = ImageScroll
; default_envs = GetBatteryVoltage
; default_envs = PokerS3
; default_envs = PCBClock
src_dir = examples/${platformio.default_envs}
boards_dir = ./boards
[env]
platform = espressif32
board = lilygo-t-displays3
framework = arduino
; extra_scripts = ./script/pos_extra_script.py
build_flags =
-DLV_LVGL_H_INCLUDE_SIMPLE
-DARDUINO_USB_CDC_ON_BOOT=1
; -UARDUINO_USB_CDC_ON_BOOT
-DDISABLE_ALL_LIBRARY_WARNINGS
-DARDUINO_USB_MODE=1
; Choose different options according to different driver chips
; Early use of CST328
-DTOUCH_MODULES_CST_MUTUAL
; Use CST816 by default
; -DTOUCH_MODULES_CST_SELF
[env:Arduino_GFX_PDQgraphicstest]
[env:Arduino_GFXDemo]
[env:factory]
[env:lv_demos]
build_flags = ${env.build_flags}
-D USEPLATFORMIO
build_src_filter = ${env.build_src_filter}
+<../../lib/lvgl/demos>
[env:nes]
[env:sd]
[env:tft]
[env:TFT_Rainbow]
[env:ImageScroll]
[env:touch_test]
[env:SerialExample]
[env:usb_hid_pad]
build_flags = -DARDUINO_USB_MODE=0
[env:ota]
upload_protocol = espota
; Change to the IP address of the board
upload_port = 192.168.36.172
[env:T-Display-S3-MIDI]
[env:GetBatteryVoltage]
[env:PokerS3]
[env:PCBClock]