-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathplatformio.ini
63 lines (58 loc) · 1.74 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
; 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 = esp32-c3-devkitc-02
[env:esp32-c3-devkitc-02]
platform = espressif32@6.9.0
board = esp32-c3-devkitc-02
framework = arduino
; set frequency to 80 MHz
board_build.f_cpu = 80000000L
; set flash frequency to 40 MHz
board_build.f_flash = 40000000L
board_build.flash_mode = qio
board_build.partitions = min_spiffs.csv
board_build.filesystem = spiffs
;board_build.partitions = custom_partition.csv
upload_speed = 460800
build_flags =
-D ARDUINO_USB_MODE=0
-D ARDUINO_USB_CDC_ON_BOOT=0
-D CORE_DEBUG_LEVEL=0
lib_ldf_mode=deep
lib_deps =
;WiFiManager@^2.0.16-rc.2
esphome/ESPAsyncWebServer-esphome@3.3.0
bblanchon/ArduinoJson@7.2.1
https://github.com/thijse/Arduino-Log.git#3f4fcf5a345c1d542e56b88c0ffcb2bd2a5b0bd0
debug_tool = esp-builtin
debug_init_break = break setupy
build_type = debug ;build in debug mode instead of release mode
check_tool = clangtidy
check_flags =
clangtidy: --checks=bugprone-*,portability-*,clang-analyzer-*,google-*,-google-readability-*
[env:local]
extends = env:esp32-c3-devkitc-02
# serial logging
build_flags =
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1
-D CORE_DEBUG_LEVEL=0
-D WAIT_FOR_SERIAL=1
-D ARDUINOJSON_ENABLE_ARDUINO_STRING=1
[env:native]
platform = native
test_framework = unity
lib_deps =
bblanchon/ArduinoJson@7.2.1
fabiobatsilva/ArduinoFake@^0.4.0
build_flags =
-D ARDUINOJSON_ENABLE_ARDUINO_STRING=1
-std=gnu++11