-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
58 lines (50 loc) · 1.36 KB
/
platformio.ini
File metadata and controls
58 lines (50 loc) · 1.36 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
; 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
[env:esp32]
platform = espressif32@6.5.0
board = esp32dev
framework = arduino
monitor_speed = 115200
upload_speed = 921600
lib_deps =
PubSubClient @ ^2.8.0
ArduinoJson @ ^6.21.0
upload_port = /dev/cu.usbserial-0001
; change to COM on windows devices
monitor_port = /dev/cu.usbserial-0001
build_flags =
-DCORE_DEBUG_LEVEL=3
-DARDUINO_ARCH_ESP32
; Optimize for size
-Os
; Enable C++11 features
-std=gnu++11
; Stack protection
-fstack-protector-all
; Optional: OTA upload configuration (once device is on network)
; Uncomment and configure after initial flash
; upload_protocol = espota
; upload_port = saltlevel-esp32.local
; upload_flags =
; --auth=your_ota_password
[env:esp32-debug]
extends = env:esp32
build_flags =
${env:esp32.build_flags}
-DDEBUG_MODE
-DCORE_DEBUG_LEVEL=5
monitor_filters = esp32_exception_decoder
[env:esp32-release]
extends = env:esp32
build_flags =
${env:esp32.build_flags}
-DCORE_DEBUG_LEVEL=1
; Optimize for size and speed
-O2