修复led问题

This commit is contained in:
2026-07-19 16:19:59 +08:00
parent fbbfcf072f
commit e25f4ee2d1
2 changed files with 7 additions and 7 deletions
@@ -1,7 +1,7 @@
# Moonshine NRF52 Mini # Moonshine NRF52 Mini
Minimal DIY Meshtastic node variant: nRF52840 + RA-01S-P (SX1262) LoRa module Minimal DIY Meshtastic node variant: nRF52840 + RA-01S-P (SX1262) LoRa module
with a single status LED on P0.13. No display, GPS, button, or battery ADC - with a single status LED on P0.15. No display, GPS, button, or battery ADC -
LoRa-only minimal system. LoRa-only minimal system.
## Hardware ## Hardware
@@ -12,7 +12,7 @@ LoRa-only minimal system.
- `SX126X_MAX_POWER=22` - `SX126X_MAX_POWER=22`
- `TCXO_OPTIONAL` (no TCXO on module - firmware tries XTAL first) - `TCXO_OPTIONAL` (no TCXO on module - firmware tries XTAL first)
- DIO2 drives TXEN internally; RXEN is controlled by `P0.17` - DIO2 drives TXEN internally; RXEN is controlled by `P0.17`
- **LED**: status LED on P0.13 (active high, `LED_STATE_ON = 1`) - **LED**: status LED on P0.15 (active high, `LED_STATE_ON = 1`)
## Pin map ## Pin map
@@ -21,14 +21,14 @@ LoRa-only minimal system.
| SPI_MISO | P0.02 | LORA_MISO | | SPI_MISO | P0.02 | LORA_MISO |
| LORA_RESET | P0.09 | SX126X_RESET | | LORA_RESET | P0.09 | SX126X_RESET |
| LORA_DIO1 | P0.10 | SX126X_DIO1 (IRQ) | | LORA_DIO1 | P0.10 | SX126X_DIO1 (IRQ) |
| LED | P0.13 | Status LED (active high) | | LED | P0.15 | Status LED (active high) |
| LORA_RXEN | P0.17 | SX126X_RXEN | | LORA_RXEN | P0.17 | SX126X_RXEN |
| LORA_BUSY | P0.29 | SX126X_BUSY | | LORA_BUSY | P0.29 | SX126X_BUSY |
| SPI_SCK | P1.11 | LORA_SCK | | SPI_SCK | P1.11 | LORA_SCK |
| LORA_CS | P1.13 | SX126X_CS | | LORA_CS | P1.13 | SX126X_CS |
| SPI_MOSI | P1.15 | LORA_MOSI | | SPI_MOSI | P1.15 | LORA_MOSI |
Only the status LED on P0.13 is wired (no button, battery ADC, GPS, or display). Only the status LED on P0.15 is wired (no button, battery ADC, GPS, or display).
The board has no user button, so DFU entry is via the 1200 bps touch or SWD. The board has no user button, so DFU entry is via the 1200 bps touch or SWD.
## Build & Flash ## Build & Flash
@@ -24,7 +24,7 @@ MOONSHINE NRF52 MINI PIN ASSIGNMENT (minimal system: nRF52840 + RA-01S-P)
| P0.02 | SPI MISO | LORA_MISO | | P0.02 | SPI MISO | LORA_MISO |
| P0.09 | LORA RESET | SX126X_RESET | | P0.09 | LORA RESET | SX126X_RESET |
| P0.10 | LORA DIO1 | SX126X_DIO1 (IRQ) | | P0.10 | LORA DIO1 | SX126X_DIO1 (IRQ) |
| P0.13 | LED | Status LED (active high) | | P0.15 | LED | Status LED (active high) |
| P0.17 | LORA RXEN | SX126X_RXEN | | P0.17 | LORA RXEN | SX126X_RXEN |
| P0.29 | LORA BUSY | SX126X_BUSY | | P0.29 | LORA BUSY | SX126X_BUSY |
| P1.11 | SPI SCK | LORA_SCK | | P1.11 | SPI SCK | LORA_SCK |
@@ -41,8 +41,8 @@ MOONSHINE NRF52 MINI PIN ASSIGNMENT (minimal system: nRF52840 + RA-01S-P)
// No dedicated 3V3 enable pin on this board // No dedicated 3V3 enable pin on this board
#define PIN_3V3_EN (-1) #define PIN_3V3_EN (-1)
// LED - status LED on P0.13 (active high) // LED - status LED on P0.15 (active high)
#define PIN_LED1 (0 + 13) // P0.13 #define PIN_LED1 (0 + 15) // P0.15
#define LED_BLUE PIN_LED1 #define LED_BLUE PIN_LED1
#define LED_STATE_ON 1 // State when LED is lit (active high) #define LED_STATE_ON 1 // State when LED is lit (active high)