2020-02-21 17:01:26 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
2020-07-07 10:46:49 +02:00
|
|
|
#include "graphics/Screen.h"
|
2020-06-27 21:19:49 -07:00
|
|
|
#include "PowerStatus.h"
|
|
|
|
|
#include "GPSStatus.h"
|
|
|
|
|
#include "NodeStatus.h"
|
2020-03-15 16:47:38 -07:00
|
|
|
|
2020-02-21 17:01:26 -08:00
|
|
|
extern bool axp192_found;
|
2020-02-24 11:21:08 -08:00
|
|
|
extern bool ssd1306_found;
|
|
|
|
|
extern bool isCharging;
|
2020-03-15 16:47:38 -07:00
|
|
|
extern bool isUSBPowered;
|
|
|
|
|
|
2020-09-12 21:43:41 -07:00
|
|
|
|
|
|
|
|
|
2020-03-15 16:47:38 -07:00
|
|
|
// Global Screen singleton.
|
2020-07-07 10:46:49 +02:00
|
|
|
extern graphics::Screen screen;
|
2020-06-28 18:17:52 -07:00
|
|
|
//extern Observable<meshtastic::PowerStatus> newPowerStatus; //TODO: move this to main-esp32.cpp somehow or a helper class
|
2020-06-27 21:19:49 -07:00
|
|
|
|
2020-06-28 18:17:52 -07:00
|
|
|
//extern meshtastic::PowerStatus *powerStatus;
|
|
|
|
|
//extern meshtastic::GPSStatus *gpsStatus;
|
|
|
|
|
//extern meshtastic::NodeStatusHandler *nodeStatusHandler;
|
2020-04-10 12:18:48 -07:00
|
|
|
|
|
|
|
|
// Return a human readable string of the form "Meshtastic_ab13"
|
|
|
|
|
const char *getDeviceName();
|
2020-04-23 16:55:25 -07:00
|
|
|
|
2020-09-06 09:24:08 -07:00
|
|
|
|
2020-04-24 09:33:45 -07:00
|
|
|
|
2020-09-12 21:43:41 -07:00
|
|
|
void nrf52Setup(), esp32Setup(), nrf52Loop(), esp32Loop();
|