Manually send an APRS frame an GPIO

This commit is contained in:
Sascha Bias 2021-09-11 21:54:33 +02:00
parent 95b22b1ea3
commit a5769a5d74

View file

@ -69,6 +69,8 @@ void setup()
digitalWrite(Config.ptt.io_pin, Config.ptt.reverse ? HIGH : LOW); digitalWrite(Config.ptt.io_pin, Config.ptt.reverse ? HIGH : LOW);
} }
pinMode(38, INPUT);
// make sure wifi and bt is off as we don't need it: // make sure wifi and bt is off as we don't need it:
WiFi.mode(WIFI_OFF); WiFi.mode(WIFI_OFF);
btStop(); btStop();
@ -185,6 +187,11 @@ void loop()
} }
} }
if (!digitalRead(38))
{
send_update=true;
}
if(send_update && gps_loc_update) if(send_update && gps_loc_update)
{ {
send_update = false; send_update = false;