mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-13 00:35:16 +00:00
Merge pull request #1439 from meshtastic/RAK18001
RAK18001 Buzzer Support
This commit is contained in:
commit
1812843363
@ -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
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#undef GPS_RX_PIN
|
#undef GPS_RX_PIN
|
||||||
#undef GPS_TX_PIN
|
#undef GPS_TX_PIN
|
||||||
#define GPS_RX_PIN 36
|
#define GPS_RX_PIN 36
|
||||||
#define GPS_TX_PIN 34
|
#define GPS_TX_PIN 33
|
||||||
|
|
||||||
#ifndef USE_JTAG // gpio15 is TDO for JTAG, so no I2C on this board while doing jtag
|
#ifndef USE_JTAG // gpio15 is TDO for JTAG, so no I2C on this board while doing jtag
|
||||||
#define I2C_SDA 4 // I2C pins for this board
|
#define I2C_SDA 4 // I2C pins for this board
|
||||||
@ -20,8 +20,8 @@
|
|||||||
#ifndef USE_JTAG
|
#ifndef USE_JTAG
|
||||||
#define LORA_RESET 14
|
#define LORA_RESET 14
|
||||||
#endif
|
#endif
|
||||||
#define LORA_DIO1 33 // Not really used
|
#define LORA_DIO1 35 // Not really used
|
||||||
#define LORA_DIO2 32 // Not really used
|
#define LORA_DIO2 34 // Not really used
|
||||||
|
|
||||||
// ratio of voltage divider = 3.20 (R1=100k, R2=220k)
|
// ratio of voltage divider = 3.20 (R1=100k, R2=220k)
|
||||||
#define ADC_MULTIPLIER 3.2
|
#define ADC_MULTIPLIER 3.2
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user