mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
formatting
This commit is contained in:
parent
e417c43c30
commit
ff3e888dfd
4 changed files with 35 additions and 34 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue