修复led问题
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Moonshine NRF52 Mini
|
||||
|
||||
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.
|
||||
|
||||
## Hardware
|
||||
@@ -12,7 +12,7 @@ LoRa-only minimal system.
|
||||
- `SX126X_MAX_POWER=22`
|
||||
- `TCXO_OPTIONAL` (no TCXO on module - firmware tries XTAL first)
|
||||
- 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
|
||||
|
||||
@@ -21,14 +21,14 @@ LoRa-only minimal system.
|
||||
| SPI_MISO | P0.02 | LORA_MISO |
|
||||
| LORA_RESET | P0.09 | SX126X_RESET |
|
||||
| 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_BUSY | P0.29 | SX126X_BUSY |
|
||||
| SPI_SCK | P1.11 | LORA_SCK |
|
||||
| LORA_CS | P1.13 | SX126X_CS |
|
||||
| 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.
|
||||
|
||||
## Build & Flash
|
||||
|
||||
@@ -24,7 +24,7 @@ MOONSHINE NRF52 MINI PIN ASSIGNMENT (minimal system: nRF52840 + RA-01S-P)
|
||||
| P0.02 | SPI MISO | LORA_MISO |
|
||||
| P0.09 | LORA RESET | SX126X_RESET |
|
||||
| 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.29 | LORA BUSY | SX126X_BUSY |
|
||||
| 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
|
||||
#define PIN_3V3_EN (-1)
|
||||
|
||||
// LED - status LED on P0.13 (active high)
|
||||
#define PIN_LED1 (0 + 13) // P0.13
|
||||
// LED - status LED on P0.15 (active high)
|
||||
#define PIN_LED1 (0 + 15) // P0.15
|
||||
#define LED_BLUE PIN_LED1
|
||||
#define LED_STATE_ON 1 // State when LED is lit (active high)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user