From 796f55486b7e497a456c01d7118b6480a2f97f35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Povilas=20Balzaravi=C4=8Dius?= Date: Thu, 21 May 2026 19:30:05 +0300 Subject: [PATCH 1/2] R1 Neo: Disable blue LED Sometimes, when device is disconnected from phone, the blue LED turns on and does not shut down even when the app connects to the companion again. Sending a message turns off the LED. This does not happen all the time when phone is disconnected and unfortunately I do not know how to reproduce. But other users in old Discord instance also confirmed the same issue. The main problem is that turned on LED drain the battery. I've checked, other variants of the same just disable this LED at all, so followed the same pattern here. Tested the firmware on my own device. --- variants/muziworks_r1_neo/R1NeoBoard.h | 4 ++-- variants/muziworks_r1_neo/variant.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/variants/muziworks_r1_neo/R1NeoBoard.h b/variants/muziworks_r1_neo/R1NeoBoard.h index c56f1f5c2e..5e4a2c8aa5 100644 --- a/variants/muziworks_r1_neo/R1NeoBoard.h +++ b/variants/muziworks_r1_neo/R1NeoBoard.h @@ -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 diff --git a/variants/muziworks_r1_neo/variant.h b/variants/muziworks_r1_neo/variant.h index 92046d61af..e25f488674 100644 --- a/variants/muziworks_r1_neo/variant.h +++ b/variants/muziworks_r1_neo/variant.h @@ -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) From 740141e3896d01387b77153e7b7c6ab274ded323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Povilas=20Balzaravi=C4=8Dius?= Date: Fri, 24 Jul 2026 12:56:40 +0300 Subject: [PATCH 2/2] [dev] R1 Neo: disable buzzer --- variants/muziworks_r1_neo/R1NeoBoard.cpp | 4 ++-- variants/muziworks_r1_neo/platformio.ini | 1 - variants/muziworks_r1_neo/variant.h | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/variants/muziworks_r1_neo/R1NeoBoard.cpp b/variants/muziworks_r1_neo/R1NeoBoard.cpp index 89cde02a53..d47621b4dd 100644 --- a/variants/muziworks_r1_neo/R1NeoBoard.cpp +++ b/variants/muziworks_r1_neo/R1NeoBoard.cpp @@ -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); diff --git a/variants/muziworks_r1_neo/platformio.ini b/variants/muziworks_r1_neo/platformio.ini index 3dbecf1e84..976825fe1d 100644 --- a/variants/muziworks_r1_neo/platformio.ini +++ b/variants/muziworks_r1_neo/platformio.ini @@ -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 diff --git a/variants/muziworks_r1_neo/variant.h b/variants/muziworks_r1_neo/variant.h index e25f488674..3c5a8d46af 100644 --- a/variants/muziworks_r1_neo/variant.h +++ b/variants/muziworks_r1_neo/variant.h @@ -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