formatting
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#include "E213Display.h"
|
#include "E213Display.h"
|
||||||
|
|
||||||
#include "../../MeshCore.h"
|
#include "../../MeshCore.h"
|
||||||
|
|
||||||
bool E213Display::begin() {
|
bool E213Display::begin() {
|
||||||
@@ -113,4 +114,3 @@ uint16_t E213Display::getTextWidth(const char* str) {
|
|||||||
void E213Display::endFrame() {
|
void E213Display::endFrame() {
|
||||||
display.update();
|
display.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "DisplayDriver.h"
|
||||||
|
|
||||||
#include <SPI.h>
|
#include <SPI.h>
|
||||||
#include <Wire.h>
|
#include <Wire.h>
|
||||||
#include <heltec-eink-modules.h>
|
#include <heltec-eink-modules.h>
|
||||||
#include "DisplayDriver.h"
|
|
||||||
|
|
||||||
// Display driver for E213 e-ink display
|
// Display driver for E213 e-ink display
|
||||||
class E213Display : public DisplayDriver {
|
class E213Display : public DisplayDriver {
|
||||||
@@ -12,8 +13,7 @@ class E213Display : public DisplayDriver {
|
|||||||
bool _isOn = false;
|
bool _isOn = false;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
E213Display() : DisplayDriver(250, 122) {
|
E213Display() : DisplayDriver(250, 122) {}
|
||||||
}
|
|
||||||
|
|
||||||
bool begin();
|
bool begin();
|
||||||
bool isOn() override { return _isOn; }
|
bool isOn() override { return _isOn; }
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#include <Arduino.h>
|
|
||||||
#include "target.h"
|
#include "target.h"
|
||||||
|
|
||||||
|
#include <Arduino.h>
|
||||||
|
|
||||||
HeltecV3Board board;
|
HeltecV3Board board;
|
||||||
|
|
||||||
static SPIClass spi;
|
static SPIClass spi;
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
#define RADIOLIB_STATIC_ONLY 1
|
#define RADIOLIB_STATIC_ONLY 1
|
||||||
#include <RadioLib.h>
|
#include <RadioLib.h>
|
||||||
#include <helpers/RadioLibWrappers.h>
|
|
||||||
#include <helpers/HeltecV3Board.h>
|
|
||||||
#include <helpers/CustomSX1262Wrapper.h>
|
|
||||||
#include <helpers/AutoDiscoverRTCClock.h>
|
#include <helpers/AutoDiscoverRTCClock.h>
|
||||||
|
#include <helpers/CustomSX1262Wrapper.h>
|
||||||
|
#include <helpers/HeltecV3Board.h>
|
||||||
|
#include <helpers/RadioLibWrappers.h>
|
||||||
#include <helpers/SensorManager.h>
|
#include <helpers/SensorManager.h>
|
||||||
#ifdef DISPLAY_CLASS
|
#ifdef DISPLAY_CLASS
|
||||||
#include <helpers/ui/E213Display.h>
|
#include <helpers/ui/E213Display.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user