-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathplatformio.ini
More file actions
153 lines (131 loc) · 4.95 KB
/
platformio.ini
File metadata and controls
153 lines (131 loc) · 4.95 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
; 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
; https://docs.platformio.org/page/projectconf.html
[platformio]
description = ESP32 Sveltekit Template
data_dir = data
extra_configs =
factory_settings.ini
features.ini
default_envs = esp32-s3-devkitc-1
[env]
framework = arduino
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.32/platform-espressif32.zip
build_flags =
${factory_settings.build_flags}
${features.build_flags}
-D BUILD_TARGET=\"$PIOENV\"
-D APP_NAME=\"ESP32-Sveltekit\" ; Must only contain characters from [a-zA-Z0-9-_] as this is converted into a filename
-D APP_VERSION=\"0.6.0\" ; semver compatible version string
; Move all networking stuff to the protocol core 0 and leave business logic on application core 1
-D ESP32SVELTEKIT_RUNNING_CORE=0
; Uncomment EMBED_WWW to embed the WWW data in the firmware binary
-D EMBED_WWW
; Uncomment to configure Cross-Origin Resource Sharing
; -D ENABLE_CORS
; -D CORS_ORIGIN=\"*\"
; Uncomment to enable informations from ESP32-Sveltekit in Serial Monitor
-D SERIAL_INFO
; Uncomment to skip SSL certificate verification when downloading firmware updates
-D DOWNLOAD_OTA_SKIP_CERT_VERIFY
; D E B U G B U I L D F L A G S
; ===============================
; These build flags are only for debugging purposes and should not be used in production
-D CONFIG_ARDUHAL_LOG_COLORS
; Uncomment to show log messages from the ESP Arduino Core and ESP32-SvelteKit
-D CORE_DEBUG_LEVEL=4
; Serve config files from flash and access at /config/filename.json
;-D SERVE_CONFIG_FILES
; Uncomment to teleplot all task high watermarks to Serial
; -D TELEPLOT_TASKS
; Uncomment to use JSON instead of MessagePack for event messages. Default is MessagePack.
; -D EVENT_USE_JSON=1
lib_compat_mode = strict
; Uncomment to include the a Root CA SSL Certificate Bundle for all SSL needs
; Needs -D FT_DOWNLOAD_FIRMWARE=1 and -D FT_NTP=1
board_build.embed_files = src/certs/x509_crt_bundle.bin
; Source for SSL Cert Store can bei either downloaded from Mozilla with 'mozilla' ('https://curl.se/ca/cacert.pem')
; or from a curated Adafruit repository with 'adafruit' (https://raw.githubusercontent.com/adafruit/certificates/main/data/roots-filtered.pem)
; or complied from a 'folder' full of *.pem / *.dem files stored in the ./ssl_certs folder
;board_ssl_cert_source = mozilla
board_ssl_cert_source = adafruit
monitor_speed = 115200
monitor_filters =
esp32_exception_decoder
log2file
board_build.filesystem = littlefs
extra_scripts =
pre:scripts/build_interface.py
pre:scripts/generate_cert_bundle.py
scripts/merge_bin.py
scripts/rename_fw.py
scripts/save_elf.py
lib_deps =
ArduinoJson@>=7.0.0
elims/PsychicMqttClient@^0.2.4
[env:esp32-c3-devkitm-1]
board = esp32-c3-devkitm-1
board_build.mcu = esp32c3
; Uncomment min_spiffs.csv setting if using EMBED_WWW with ESP32
board_build.partitions = min_spiffs.csv
; Use USB CDC for firmware upload and serial terminal
; board_upload.before_reset = usb_reset
; build_flags =
; ${env.build_flags}
; -DARDUINO_USB_CDC_ON_BOOT=1
; -DARDUINO_USB_MODE=1
[env:esp32-s3-devkitc-1]
board = esp32-s3-devkitc-1
board_build.mcu = esp32s3
board_build.partitions = default_8MB.csv
; Use USB CDC for firmware upload and serial terminal
; board_upload.before_reset = usb_reset
build_flags =
${env.build_flags}
-DARDUINO_USB_CDC_ON_BOOT=1
-DARDUINO_USB_MODE=1
[env:esp32dev]
; Works for nodemcu-32s, devkit-v1 boards and probably others. You can change the pin defines below if needed.
board = esp32dev
board_build.partitions = min_spiffs.csv
build_flags =
${env.build_flags}
-D LED_BUILTIN=2
-D KEY_BUILTIN=0
[env:Kincony-B16M]
; Works for the Kincony B16M smart home controller with Ethernet support
board = esp32-s3-devkitc-1
board_build.partitions = default_16MB.csv
board_upload.before_reset = usb-reset
build_flags =
${env.build_flags}
-DARDUINO_USB_CDC_ON_BOOT=1
-DARDUINO_USB_MODE=1
-DFT_ETHERNET=1
-DUSE_TWO_ETH_PORTS=0
-DETH_PHY_TYPE=ETH_PHY_W5500
-DETH_PHY_ADDR=1
-DETH_PHY_CS=41
-DETH_PHY_IRQ=2 ; -1 if you won't wire
-DETH_PHY_RST=1 ; -1 if you won't wire
-DETH_SPI_SCK=42
-DETH_SPI_MISO=44
-DETH_SPI_MOSI=43
[env:esp32-wt32-eth01]
; Works for the WT32-ETH01 board with Ethernet support
board = wt32-eth01
board_build.partitions = min_spiffs.csv
build_flags =
${env.build_flags}
; Not an LED but an unused GPIO pin
-DLED_BUILTIN=14
-DKEY_BUILTIN=0
-DFT_ETHERNET=1
; Only use the filtered Adafruit SSL cert bundle as the full Mozilla bundle is too large for this board with the whole demo app
board_ssl_cert_source = adafruit