Manually send an APRS frame an GPIO
This commit is contained in:
parent
95b22b1ea3
commit
a5769a5d74
1 changed files with 7 additions and 0 deletions
|
@ -69,6 +69,8 @@ void setup()
|
|||
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:
|
||||
WiFi.mode(WIFI_OFF);
|
||||
btStop();
|
||||
|
@ -185,6 +187,11 @@ void loop()
|
|||
}
|
||||
}
|
||||
|
||||
if (!digitalRead(38))
|
||||
{
|
||||
send_update=true;
|
||||
}
|
||||
|
||||
if(send_update && gps_loc_update)
|
||||
{
|
||||
send_update = false;
|
||||
|
|
Loading…
Reference in a new issue