Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions variants/muziworks_r1_neo/R1NeoBoard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ void R1NeoBoard::begin() {
// button is active high and passed through from I/O controller
pinMode(PIN_USER_BTN, INPUT);

pinMode(PIN_BUZZER, OUTPUT);
digitalWrite(PIN_BUZZER, LOW);
pinMode(3, OUTPUT); // buzzer drive pin (P0.03) - pull low to avoid power draw, beeper is disabled
digitalWrite(3, LOW);

// battery pins
pinMode(PIN_BAT_CHG, INPUT);
Expand Down
4 changes: 2 additions & 2 deletions variants/muziworks_r1_neo/R1NeoBoard.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ class R1NeoBoard : public NRF52BoardDCDC {
#if defined(P_LORA_TX_LED)
void onBeforeTransmit() override {
digitalWrite(P_LORA_TX_LED, HIGH); // turn TX LED on
#if defined(LED_BLUE)
#if defined(LED_BLUE) && LED_BLUE >= 0
// turn off that annoying blue LED before transmitting
digitalWrite(LED_BLUE, LOW);
#endif
}
void onAfterTransmit() override {
digitalWrite(P_LORA_TX_LED, LOW); // turn TX LED off
#if defined(LED_BLUE)
#if defined(LED_BLUE) && LED_BLUE >= 0
// do it after transmitting too, just in case
digitalWrite(LED_BLUE, LOW);
#endif
Expand Down
1 change: 0 additions & 1 deletion variants/muziworks_r1_neo/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ build_flags = ${nrf52_base.build_flags}
-D LORA_TX_POWER=22
-D SX126X_CURRENT_LIMIT=140
-D SX126X_RX_BOOSTED_GAIN=1
-D PIN_BUZZER=3
-D PIN_USER_BTN=26
-D USER_BTN_PRESSED=HIGH
-D PIN_GPS_TX=25
Expand Down
4 changes: 2 additions & 2 deletions variants/muziworks_r1_neo/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ extern "C"

/* LEDs */
#define LED_GREEN (36) // P1.04 (28) GRN_LED_RAK
#define LED_BLUE (28) // P0.28 (31) BLU_LED_RAK
#define LED_BLUE (-1) // Disable annoying flashing caused by Bluefruit

#define LED_BUILTIN (0xFF)

Expand All @@ -94,7 +94,7 @@ extern "C"
#define PIN_USER_BTN (26)

/* Buzzer */
#define PIN_BUZZER (3)
// #define PIN_BUZZER (3) // Disabled: beeper is undesirable on this device

/* Analog pins */
// Arduino makes me angry
Expand Down