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