-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
62 lines (52 loc) · 2.05 KB
/
platformio.ini
File metadata and controls
62 lines (52 loc) · 2.05 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
; Azimuth — ESP32-C3 + BNO08x (SPI). Pin map: include/azimuth_hw.h
;
; Hardware profiles: same GPIO map in include/azimuth_hw.h; different `board` = Arduino core / flash layout:
; *_diy — XIAO ESP32-C3 + BNO08x breakout (SPI). Wire like Azimuth_Design (see docs/wiring.md). No Azimuth RGB LED on breadboard.
; *_pcb — Azimuth custom PCB (kicad/Azimuth_Design): WROOM module, RGB LED, buzzer, FUNC where populated.
;
; Environments (pio run -e <name>):
; azimuth_main_diy / azimuth_main_pcb — Release: Hatire + optional Wi‑Fi UDP, HTTP portal, NVS.
; azimuth_debug_diy / azimuth_debug_pcb — USB serial yaw/pitch/roll only; no Wi‑Fi / portal.
;
; Optional compile-time Wi‑Fi / OpenTrack: copy include/secrets.h.example → include/secrets.h (gitignored). Most users leave it empty and use the portal (NVS).
[platformio]
default_envs = azimuth_main_diy
[env]
platform = espressif32
board = seeed_xiao_esp32c3
framework = arduino
monitor_speed = 115200
lib_deps =
sparkfun/SparkFun BNO08x Cortex Based IMU
; --- Debug (IMU serial only) -------------------------------------------------
[env:azimuth_debug_common]
build_src_filter = +<*> -<portal_html.cpp>
build_flags =
-DCORE_DEBUG_LEVEL=0
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
-DIMU_DEBUG_MODE=1
[env:azimuth_debug_diy]
extends = env:azimuth_debug_common
[env:azimuth_debug_pcb]
extends = env:azimuth_debug_common
board = esp32-c3-devkitc-02
; --- Main (portal + Hatire + UDP) -------------------------------------------
[env:azimuth_main_common]
extra_scripts = pre:scripts/pio_set_version.py
lib_deps =
${env.lib_deps}
bblanchon/ArduinoJson @ ^7.2.0
build_flags =
-DCORE_DEBUG_LEVEL=0
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
-DIMU_DEBUG_MODE=0
-DOPENTRACK_UDP_PORT=4242
-DAZIMUTH_RELEASE_MANIFEST_URL=\"https://fuglong.github.io/Azimuth/manifest.json\"
-DAZIMUTH_RELEASE_FLASHER_URL=\"https://fuglong.github.io/Azimuth/\"
[env:azimuth_main_diy]
extends = env:azimuth_main_common
[env:azimuth_main_pcb]
extends = env:azimuth_main_common
board = esp32-c3-devkitc-02