This commit is contained in:
parent
9b7a099fc6
commit
da7b55b6dd
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"beacons": [
|
||||
{
|
||||
"callsign": "NOCALL-7",
|
||||
"callsign": "CA2RXU-7",
|
||||
"symbol": "[",
|
||||
"overlay": "/",
|
||||
"micE": "",
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"callsign": "NOCALL-7",
|
||||
"callsign": "CA2RXU-7",
|
||||
"symbol": ">",
|
||||
"overlay": "/",
|
||||
"micE": "",
|
||||
|
|
@ -37,8 +37,8 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"callsign": "NOCALL-7",
|
||||
"symbol": "j",
|
||||
"callsign": "CA2RXU-7",
|
||||
"symbol": "b",
|
||||
"overlay": "/",
|
||||
"micE": "",
|
||||
"comment": "",
|
||||
|
|
@ -66,7 +66,7 @@
|
|||
"simplifiedTrackerMode": false,
|
||||
"showSymbolOnScreen": true,
|
||||
"sendCommentAfterXBeacons": 10,
|
||||
"displayEcoMode": false,
|
||||
"displayEcoMode": true,
|
||||
"displayTimeout": 4,
|
||||
"path": "WIDE1-1",
|
||||
"nonSmartBeaconRate": 15,
|
||||
|
|
@ -75,7 +75,7 @@
|
|||
"standingUpdateTime": 15,
|
||||
"sendAltitude": true,
|
||||
"sendBatteryInfo": false,
|
||||
"bluetoothType": 1,
|
||||
"bluetoothType": 0,
|
||||
"bluetoothActive": true,
|
||||
"disableGPS": false
|
||||
},
|
||||
|
|
@ -92,10 +92,12 @@
|
|||
"heightCorrection": 0
|
||||
},
|
||||
"notification": {
|
||||
"ledTx": false,
|
||||
"ledTxPin": 13,
|
||||
"ledMessage": false,
|
||||
"ledMessagePin": 2,
|
||||
"ledTx": true,
|
||||
"ledTxPin": 25,
|
||||
"ledMessage": true,
|
||||
"ledMessagePin": 13,
|
||||
"ledFlashlight": true,
|
||||
"ledFlashlightPin": 14,
|
||||
"buzzerActive": false,
|
||||
"buzzerPinTone": 33,
|
||||
"buzzerPinVcc": 25,
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ uint32_t keyboardTime = millis();
|
|||
String messageCallsign = "";
|
||||
String messageText = "";
|
||||
|
||||
bool flashlight = false;
|
||||
bool digirepeaterActive = false;
|
||||
bool sosActive = false;
|
||||
bool disableGPS;
|
||||
|
|
@ -109,13 +110,17 @@ void setup() {
|
|||
pinMode(Config.notification.buzzerPinTone, OUTPUT);
|
||||
pinMode(Config.notification.buzzerPinVcc, OUTPUT);
|
||||
NOTIFICATION_Utils::start();
|
||||
}
|
||||
}
|
||||
if (Config.notification.ledTx){
|
||||
pinMode(Config.notification.ledTxPin, OUTPUT);
|
||||
}
|
||||
if (Config.notification.ledMessage){
|
||||
pinMode(Config.notification.ledMessagePin, OUTPUT);
|
||||
}
|
||||
if (Config.notification.ledFlashlight) {
|
||||
pinMode(Config.notification.ledFlashlightPin, OUTPUT);
|
||||
}
|
||||
|
||||
show_display(" LoRa APRS", "", " (TRACKER)", "", "Richonguzman / CA2RXU", " " + versionDate, 4000);
|
||||
logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "Main", "RichonGuzman (CA2RXU) --> LoRa APRS Tracker/Station");
|
||||
logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "Main", "Version: %s", versionDate);
|
||||
|
|
|
|||
|
|
@ -66,6 +66,8 @@ void Configuration::readFile(fs::FS &fs, const char *fileName) {
|
|||
notification.ledTxPin = data["notification"]["ledTxPin"].as<int>();
|
||||
notification.ledMessage = data["notification"]["ledMessage"].as<bool>();
|
||||
notification.ledMessagePin = data["notification"]["ledMessagePin"].as<int>();
|
||||
notification.ledFlashlight = data["notification"]["ledFlashlight"].as<bool>();
|
||||
notification.ledFlashlightPin = data["notification"]["ledFlashlightPin"].as<int>();
|
||||
notification.buzzerActive = data["notification"]["buzzerActive"].as<bool>();
|
||||
notification.buzzerPinTone = data["notification"]["buzzerPinTone"].as<int>();
|
||||
notification.buzzerPinVcc = data["notification"]["buzzerPinVcc"].as<int>();
|
||||
|
|
|
|||
|
|
@ -54,6 +54,8 @@ public:
|
|||
int ledTxPin;
|
||||
bool ledMessage;
|
||||
int ledMessagePin;
|
||||
bool ledFlashlight;
|
||||
int ledFlashlightPin;
|
||||
bool buzzerActive;
|
||||
int buzzerPinTone;
|
||||
int buzzerPinVcc;
|
||||
|
|
|
|||
Loading…
Reference in New Issue