moonshine: 加充电检测 P0.16 + 整理构建烧录文档
variant.h: 新增 EXT_CHRG_DETECT (P0.16, 高电平=充电中), Power.cpp 据此驱动 isCharging() 和充电状态 LED 行为。 readme: 引脚表加 CHARGE_DET 行;合并 Build/Flash 章节为 'Build & Flash',分首次烧录(recover+SD+app)和增量烧录(app only) 两个命令块,便于复用。
This commit is contained in:
@@ -73,6 +73,10 @@ MOONSHINE NRF52 PIN ASSIGNMENT (RF-BM-ND05)
|
||||
#define LED_BLUE PIN_LED1
|
||||
#define LED_STATE_ON 1 // State when LED is lit (active high)
|
||||
|
||||
// Charge detection (P0.16, active high = charging)
|
||||
#define EXT_CHRG_DETECT (0 + 16)
|
||||
#define EXT_CHRG_DETECT_VALUE HIGH
|
||||
|
||||
// Buzzer
|
||||
#define PIN_BUZZER (0 + 26) // P0.26
|
||||
|
||||
|
||||
Reference in New Issue
Block a user