-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
platformio.ini
executable file
·59 lines (53 loc) · 1.36 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
; 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]
; default_envs = ESP32C3
default_envs = ESP12E
[env]
board_build.filesystem = littlefs
monitor_speed = 115200
lib_deps =
./../uniot-cbor
./../uniot-lisp
./../uniot-pubsubclient
./../uniot-crypto
build_unflags =
-std=gnu++11
build_flags =
-std=gnu++17
-D UNIOT_CREATOR_ID=\"UNIOT\"
-D UNIOT_LOG_ENABLED=1
-D UNIOT_USE_LITTLEFS=1
-D UNIOT_LOG_LEVEL=4
-D MQTT_MAX_PACKET_SIZE=2048
[env:ESP12E]
platform = espressif8266
framework = arduino
board = esp12e
monitor_filters = default, esp8266_exception_decoder
extra_scripts = ./scripts/download_fs.py
[env:ESP32]
platform = espressif32
framework = arduino
board = esp32doit-devkit-v1
monitor_filters = default, esp32_exception_decoder
[env:ESP32C3]
platform = espressif32
framework = arduino
board = esp32-c3-devkitm-1
build_type = debug
monitor_filters = default, esp32_exception_decoder
upload_speed = 115200
build_flags =
${env.build_flags}
-D ARDUINO_USB_MODE=1
-D SERIALCONS=USBSerial
-D ARDUINO_USB_CDC_ON_BOOT=1
-D CORE_DEBUG_LEVEL=4