-
Notifications
You must be signed in to change notification settings - Fork 25
/
platformio.ini
111 lines (95 loc) · 3.64 KB
/
platformio.ini
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
; 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 = espressif32 @ 6.8.1
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.5.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
; 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 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.pem)
; or complied from a 'folder' full of *.pem / *.dem files stored in the ./ssl_certs folder
board_ssl_cert_source = adafruit
monitor_speed = 115200
monitor_filters =
esp32_exception_decoder
default
colorize
log2file
board_build.filesystem = littlefs
extra_scripts =
pre:scripts/build_interface.py
pre:scripts/generate_cert_bundle.py
scripts/rename_fw.py
lib_deps =
ArduinoJson@>=7.0.0
https://github.com/theelims/PsychicMqttClient.git#0.1.1
[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