-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathplatformio.ini
More file actions
86 lines (83 loc) · 2.02 KB
/
platformio.ini
File metadata and controls
86 lines (83 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
; 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 examples
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[common]
custom_version = 1.0.6
platform = espressif32
framework = arduino
monitor_speed = 115200
monitor_filters =
esp32_exception_decoder
lib_deps =
SPI
bblanchon/ArduinoJson
bodmer/TFT_eSPI@^2.5.43
bitbank2/JPEGDEC@^1.2.6
me-no-dev/ESPAsyncWebServer@^3.6.0
bblanchon/ArduinoJson@^7.4.2
SD
board_build.embed_txtfiles =
src/www/index.html
src/www/app.js
src/www/stream.js
src/www/vcr.ttf
[common_build_flags]
build_flags =
-D APP_VERSION="${common.custom_version}"
-Ofast ; maximum speed!
[env:esp32-s3-devkitc-1]
extends = common
board = esp32-s3-devkitc-1
board_build.arduino.memory_type = qio_opi
extra_scripts =
pre:extra_script.py
post:merge_firmware.py
board_build.flash_mode = qio
board_build.psram_type = opi
board_upload.flash_size = 16MB
board_build.partitions = default_16MB.csv
build_flags =
${common_build_flags.build_flags}
-DBOARD_HAS_PSRAM
; -DUSE_DMA
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
-DCONFIG_ASYNC_TCP_RUNNING_CORE=1
; TFT_eSPI setup
-DUSER_SETUP_LOADED=1
-DST7789_2_DRIVER=1
-DTFT_RGB_ORDER=1
-DTFT_WIDTH=240
-DTFT_HEIGHT=280
-DTFT_MOSI=GPIO_NUM_7
-DTFT_SCLK=GPIO_NUM_6
-DTFT_CS=GPIO_NUM_5
-DTFT_DC=GPIO_NUM_4
-DTFT_RST=GPIO_NUM_8
-DTFT_BL=GPIO_NUM_15
-DTFT_MISO=GPIO_NUM_21
-DSPI_FREQUENCY=80000000
-DTFT_SPI_HOST=2
-DTFT_Y_OFFSET=20
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DUSE_HSPI_PORT
; SD card
-DUSE_SDCARD
-DSD_CARD_MISO=GPIO_NUM_18
-DSD_CARD_MOSI=GPIO_NUM_17
-DSD_CARD_CLK=GPIO_NUM_11
-DSD_CARD_CS=GPIO_NUM_10
; Button
-DSYS_EN=GPIO_NUM_41
-DSYS_OUT=GPIO_NUM_40
; Battery monitor
-DBATTERY_VOLTAGE_PIN=GPIO_NUM_1