Files
firmware/src/main.h

29 lines
711 B
C
Raw Normal View History

#pragma once
2020-07-07 10:46:49 +02:00
#include "graphics/Screen.h"
#include "PowerStatus.h"
#include "GPSStatus.h"
#include "NodeStatus.h"
extern bool axp192_found;
extern bool ssd1306_found;
extern bool isCharging;
extern bool isUSBPowered;
// 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-28 18:17:52 -07:00
//extern meshtastic::PowerStatus *powerStatus;
//extern meshtastic::GPSStatus *gpsStatus;
//extern meshtastic::NodeStatusHandler *nodeStatusHandler;
// 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
void nrf52Setup(), esp32Setup(), nrf52Loop(), esp32Loop();