Support Buzzer in Slot C

This commit is contained in:
Thomas Göttgens 2022-05-06 14:20:46 +02:00
parent 251365dca7
commit 628740d6d1
2 changed files with 3 additions and 4 deletions

View File

@ -1,10 +1,6 @@
#include "buzz.h"
#include "configuration.h"
#ifdef NRF52_SERIES
#include "variant.h"
#endif
#ifndef PIN_BUZZER
// Noop methods for boards w/o buzzer

View File

@ -201,6 +201,9 @@ static const uint8_t SCK = PIN_SPI_SCK;
// RAK12002 RTC Module
#define RV3028_RTC (uint8_t) 0b1010010
// RAK18001 Buzzer in Slot C
#define PIN_BUZZER 21 // IO3 is PWM2
// Battery
// The battery sense is hooked to pin A0 (5)
#define BATTERY_PIN PIN_A0