kopia lustrzana https://github.com/meshtastic/firmware
Support Buzzer in Slot C
rodzic
251365dca7
commit
628740d6d1
|
@ -1,10 +1,6 @@
|
||||||
#include "buzz.h"
|
#include "buzz.h"
|
||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
|
|
||||||
#ifdef NRF52_SERIES
|
|
||||||
#include "variant.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef PIN_BUZZER
|
#ifndef PIN_BUZZER
|
||||||
|
|
||||||
// Noop methods for boards w/o buzzer
|
// Noop methods for boards w/o buzzer
|
||||||
|
|
|
@ -201,6 +201,9 @@ static const uint8_t SCK = PIN_SPI_SCK;
|
||||||
// RAK12002 RTC Module
|
// RAK12002 RTC Module
|
||||||
#define RV3028_RTC (uint8_t) 0b1010010
|
#define RV3028_RTC (uint8_t) 0b1010010
|
||||||
|
|
||||||
|
// RAK18001 Buzzer in Slot C
|
||||||
|
#define PIN_BUZZER 21 // IO3 is PWM2
|
||||||
|
|
||||||
// Battery
|
// Battery
|
||||||
// The battery sense is hooked to pin A0 (5)
|
// The battery sense is hooked to pin A0 (5)
|
||||||
#define BATTERY_PIN PIN_A0
|
#define BATTERY_PIN PIN_A0
|
||||||
|
|
Ładowanie…
Reference in New Issue