corvus2 board builds

This commit is contained in:
Kevin Hester
2020-10-13 13:59:06 +08:00
parent ef325289eb
commit 965c2bda8d
8 changed files with 373 additions and 11 deletions

View File

@@ -36,6 +36,22 @@ bool GPS::setup()
return ok;
}
void GPS::wake()
{
#ifdef PIN_GPS_WAKE
digitalWrite(PIN_GPS_WAKE, 1);
pinMode(PIN_GPS_WAKE, OUTPUT);
#endif
}
void GPS::sleep() {
#ifdef PIN_GPS_WAKE
digitalWrite(PIN_GPS_WAKE, 0);
pinMode(PIN_GPS_WAKE, OUTPUT);
#endif
}
/// Record that we have a GPS
void GPS::setConnected()
{