Browse Source

[dev] R1 Neo: disable buzzer

pull/2601/head
Povilas Balzaravičius 5 days ago
parent
commit
740141e389
  1. 4
      variants/muziworks_r1_neo/R1NeoBoard.cpp
  2. 1
      variants/muziworks_r1_neo/platformio.ini
  3. 2
      variants/muziworks_r1_neo/variant.h

4
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);

1
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

2
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

Loading…
Cancel
Save