Repository navigation
Expand file tree
/
Copy pathplatformio.ini
More file actions
70 lines (66 loc) · 3.54 KB
/
Copy pathplatformio.ini
File metadata and controls
70 lines (66 loc) · 3.54 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
; 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 = esp32s3
; Custom board built around a bare ESP32-S3-WROOM-1 module (see
; PCB/v1.x/GPIO_table.md), not a vendor dev board. "esp32-s3-devkitc-1" is the
; closest board def in the espressif32 platform's registry — it targets
; the same module with the same default flash/PSRAM config, so it's the
; standard stand-in for a custom WROOM-1 design in PlatformIO.
[env:esp32s3]
; Pinned to the exact version already resolving here rather than the bare
; floating "espressif32" name — an unversioned platform name is a single
; shared cache slot on this machine, so unrelated ESP32 work elsewhere can
; silently replace it out from under this project (same reasoning
; thePunderWoman/Amidala's platformio.ini documents for its own pin).
platform = espressif32@7.0.1
board = esp32-s3-devkitc-1
framework = arduino
monitor_speed = 115200
; This board has no external USB-UART bridge chip (bare WROOM-1 module,
; see PCB/v1.x/GPIO_table.md) — Serial has to go over the ESP32-S3's native USB
; peripheral, the same port used for flashing. The board def enables that
; peripheral (ARDUINO_USB_MODE=1) but doesn't turn Serial itself onto it by
; default, so without this flag Serial silently goes to UART0's physical
; pins instead (unconnected on this board) and the monitor shows nothing,
; even though the firmware is running fine.
build_flags = -D ARDUINO_USB_CDC_ON_BOOT=1
lib_deps =
adafruit/Adafruit SSD1306@^2.5.13
adafruit/Adafruit GFX Library@^1.11.11
adafruit/Adafruit NeoPixel@^1.15.4
extra_scripts = pre:scripts/firmware_version.py
; V2 board (PCB/v2.x/snips): ESP32-S3-MINI-1U-N8, its own pin map
; (include/pin_assignment.h, PCB/v2.x/snips/GPIO_table.md) and the XBee on
; an optional UART carrier. Same module family as V1, so the same board def
; and settings; the -N8 has no PSRAM, which Arduino's boot-time probe
; handles. Never flash the V1 build onto a V2 board, or vice versa.
[env:esp32s3_v2]
extends = env:esp32s3
build_flags = ${env:esp32s3.build_flags} -D SNIPS_BOARD_V2
; Native (host) environment for unit tests — no hardware required.
; SnipsController.ino pulls in Arduino.h, so it's excluded here; everything
; else in src/ is hardware-agnostic and gets linked into the test binary,
; EXCEPT a small, explicitly-named list of genuinely hardware-touching
; adapter files (thin wrappers over I2C/SPI/ADC/RMT/NVS), added here
; alongside as new subsystems land — see CLAUDE.md's testing-approach note.
; Currently: oled.cpp (Adafruit_SSD1306/Wire), rgb_led.cpp
; (Adafruit_NeoPixel/RMT), calibration_store.cpp, droid_persistence.cpp,
; and display_layout_store.cpp (all Preferences/NVS), xbee_spi.cpp
; (SPI, V1) and xbee_uart.cpp (Serial1, V2) — the XBee's API logic is in
; the pure xbee_api.cpp, xbee_frame_reader.cpp and xbee_uart_setup.cpp —
; and xbee_control.cpp (calls through to the board's link).
[env:native]
platform = native
test_build_src = yes
build_src_filter = +<*> -<*.ino> -<oled.cpp> -<rgb_led.cpp> -<calibration_store.cpp> -<droid_persistence.cpp> -<xbee_spi.cpp> -<xbee_uart.cpp> -<xbee_control.cpp> -<display_layout_store.cpp> -<accelerometer.cpp> -<power_config_store.cpp>
test_framework = unity
build_flags = --coverage
extra_scripts = pre:scripts/native_coverage_linkflags.py