Initial PIO conf
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1,3 +1,6 @@
|
||||
*.FCStd
|
||||
*.FCBak
|
||||
*.3mf
|
||||
*.3mf
|
||||
*.pio
|
||||
*.claude
|
||||
*.vscode
|
||||
38
platformio.ini
Normal file
38
platformio.ini
Normal file
@@ -0,0 +1,38 @@
|
||||
; ── PlatformIO project configuration ─────────────────────────────────────────
|
||||
; Board : Seeed XIAO nRF52840 Sense
|
||||
; Core : Adafruit nRF52 Arduino (via Seeed platform-seeedboards)
|
||||
; Flash : adafruit-nrfutil over USB serial (same as Arduino IDE)
|
||||
;
|
||||
; First-time setup:
|
||||
; pip install adafruit-nrfutil <- upload tool (once, globally)
|
||||
; pio run -t upload <- build + flash
|
||||
; ──────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
[env:xiao_nrf52840_sense]
|
||||
platform = https://github.com/Seeed-Studio/platform-seeedboards.git
|
||||
board = seeed-xiao-afruitnrf52-nrf52840
|
||||
framework = arduino
|
||||
|
||||
; ── Upload ────────────────────────────────────────────────────────────────────
|
||||
; The XIAO uses a UF2 bootloader that accepts firmware via adafruit-nrfutil.
|
||||
; Double-tap the reset button to enter bootloader (red LED pulses) before
|
||||
; flashing if the board isn't auto-reset by the tool.
|
||||
upload_protocol = nrfutil
|
||||
upload_speed = 115200
|
||||
; Uncomment and set the correct port if auto-detect fails:
|
||||
; upload_port = COM3
|
||||
|
||||
; ── Build flags ───────────────────────────────────────────────────────────────
|
||||
build_flags =
|
||||
-DARDUINO_Seeed_XIAO_nRF52840_Sense
|
||||
-DNRF52840_XXAA
|
||||
|
||||
; ── Libraries ─────────────────────────────────────────────────────────────────
|
||||
; bluefruit.h, Adafruit_LittleFS.h, InternalFileSystem.h are bundled with
|
||||
; the Adafruit nRF52 core and do NOT need to be listed here.
|
||||
; Only external libraries are listed:
|
||||
lib_deps =
|
||||
Seeed-Studio/Seeed Arduino LSM6DS3 @ ^2.0.3
|
||||
|
||||
; ── Serial monitor ────────────────────────────────────────────────────────────
|
||||
monitor_speed = 115200
|
||||
Reference in New Issue
Block a user