Repository navigation
Expand file tree
/
Copy pathplatformio.ini
More file actions
104 lines (91 loc) · 3.14 KB
/
Copy pathplatformio.ini
File metadata and controls
104 lines (91 loc) · 3.14 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
; 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-devkitm-1
[env:esp32-c3-devkitm-1]
; Arduino-ESP32 3.x (ESP_I2S + rgbLedWrite); official PIO platform stays on 2.x
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
board = esp32-c3-devkitm-1
framework = arduino
monitor_speed = 115200
lib_deps =
adafruit/Adafruit PWM Servo Driver Library
adafruit/Adafruit GFX Library
adafruit/Adafruit SSD1306
bblanchon/ArduinoJson@^7.4.3
build_flags =
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1
-D SSD1306_NO_SPLASH
board_build.partitions = partitions.csv
board_build.filesystem = littlefs
; Empty keeps assets/. Set to a mods/<name> folder to overlay its WAVs
; (example: halloween). Clips the mod does not ship stay stock.
custom_audio_mod =
extra_scripts =
pre:scripts/firmware_version.py
pre:scripts/copy_assets.py
pre:scripts/embed_ui.py
pre:scripts/park_servos_before_upload.py
post:scripts/upload_fs_after_upload.py
; Host Unity tests — never flash. Run: pio test -e native
test_ignore = *
; Opt-in Wi-Fi updates: two OTA app slots instead of coredump, and 960 KB LittleFS.
[env:ota]
extends = env:esp32-c3-devkitm-1
board_build.partitions = partitions_ota.csv
build_flags =
${env:esp32-c3-devkitm-1.build_flags}
-D TE_OTA
extra_scripts =
${env:esp32-c3-devkitm-1.extra_scripts}
post:scripts/ota.py
[env:native]
platform = native
test_framework = unity
test_build_src = true
build_src_filter =
-<**/*.*>
+<settings/validate.cpp>
+<settings/wifi_network_list.cpp>
+<display/eyes/styles/eye_style_ids.cpp>
+<audio/wav_parser.cpp>
+<audio/audio_motion.cpp>
+<serial/frame.cpp>
+<serial/protocol.cpp>
build_flags = -std=c++17 -Iinclude -Isrc
; Opt-in OLED-only application. Building does not upload or change robot settings.
[env:expression-demo]
platform = ${env:esp32-c3-devkitm-1.platform}
board = ${env:esp32-c3-devkitm-1.board}
framework = ${env:esp32-c3-devkitm-1.framework}
monitor_speed = ${env:esp32-c3-devkitm-1.monitor_speed}
build_flags = ${env:esp32-c3-devkitm-1.build_flags}
; For an upside-down OLED, append: -D EXPRESSION_DEMO_ROTATION=2
lib_deps =
adafruit/Adafruit GFX Library
adafruit/Adafruit SSD1306
build_src_filter =
-<*>
+<../examples/expression-demo/main.cpp>
test_ignore = *
; Opt-in PCBA session. Building does not upload or change the default robot env.
[env:pcba-test]
platform = ${env:esp32-c3-devkitm-1.platform}
board = ${env:esp32-c3-devkitm-1.board}
framework = ${env:esp32-c3-devkitm-1.framework}
monitor_speed = ${env:esp32-c3-devkitm-1.monitor_speed}
build_flags = ${env:esp32-c3-devkitm-1.build_flags}
lib_deps =
adafruit/Adafruit PWM Servo Driver Library
build_src_filter =
-<*>
+<../examples/pcba-test/main.cpp>
test_ignore = *