LoRaWAN-Signal-Mapping/iot/main/power.cpp

19 lines
385 B
C++
Raw Normal View History

#include <Arduino.h>
#include "settings.h"
void power_init() {
pinMode(PIN_TPL_DONE, OUTPUT);
digitalWrite(PIN_TPL_DONE, LOW);
}
void power_off() {
2019-06-24 14:47:00 +00:00
Serial.println(F("[power] Shutting down"));
// Serial.println(F("[power] Switching GPS module to standby"));
// power_gps_standby();
digitalWrite(PIN_TPL_DONE, HIGH);
// Wait until we're turned off
while(true) delay(100);
}