Remove unnecessary comments, clean up code

This commit is contained in:
2026-03-03 21:38:32 +01:00
parent cb433f76c9
commit 8e9a3712ac
16 changed files with 197 additions and 331 deletions
+7 -7
View File
@@ -1,4 +1,4 @@
; ── PlatformIO project configuration ─────────────────────────────────────────
; 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)
@@ -6,7 +6,7 @@
; First-time setup:
; pip install adafruit-nrfutil <- upload tool (once, globally)
; pio run -t upload <- build + flash
; ──────────────────────────────────────────────────────────────────────────────
;
[platformio]
src_dir = source
@@ -16,7 +16,7 @@ platform = https://github.com/Seeed-Studio/platform-seeedboards.git
board = seeed-xiao-afruitnrf52-nrf52840
framework = arduino
; ── Upload ────────────────────────────────────────────────────────────────────
; 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.
@@ -25,21 +25,21 @@ upload_speed = 115200
; Uncomment and set the correct port if auto-detect fails:
; upload_port = COM3
; ── Build scripts ─────────────────────────────────────────────────────────────
; Build scripts
extra_scripts = pre:scripts/git_hash.py
; ── Build flags ───────────────────────────────────────────────────────────────
; Build flags
build_flags =
-DARDUINO_Seeed_XIAO_nRF52840_Sense
-DNRF52840_XXAA
-DTARGET_SEEED_XIAO_NRF52840_SENSE
; ── Libraries ─────────────────────────────────────────────────────────────────
; 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 ────────────────────────────────────────────────────────────
; Serial monitor
monitor_speed = 115200