Browse Source

formatting

pull/455/head
JQ 1 year ago
parent
commit
ff3e888dfd
  1. 2
      src/helpers/ui/E213Display.cpp
  2. 6
      src/helpers/ui/E213Display.h
  3. 3
      variants/heltec_wireless_paper/target.cpp
  4. 6
      variants/heltec_wireless_paper/target.h

2
src/helpers/ui/E213Display.cpp

@ -1,4 +1,5 @@
#include "E213Display.h"
#include "../../MeshCore.h"
bool E213Display::begin() {
@ -113,4 +114,3 @@ uint16_t E213Display::getTextWidth(const char* str) {
void E213Display::endFrame() {
display.update();
}

6
src/helpers/ui/E213Display.h

@ -1,9 +1,10 @@
#pragma once
#include "DisplayDriver.h"
#include <SPI.h>
#include <Wire.h>
#include <heltec-eink-modules.h>
#include "DisplayDriver.h"
// Display driver for E213 e-ink display
class E213Display : public DisplayDriver {
@ -12,8 +13,7 @@ class E213Display : public DisplayDriver {
bool _isOn = false;
public:
E213Display() : DisplayDriver(250, 122) {
}
E213Display() : DisplayDriver(250, 122) {}
bool begin();
bool isOn() override { return _isOn; }

3
variants/heltec_wireless_paper/target.cpp

@ -1,6 +1,7 @@
#include <Arduino.h>
#include "target.h"
#include <Arduino.h>
HeltecV3Board board;
static SPIClass spi;

6
variants/heltec_wireless_paper/target.h

@ -2,10 +2,10 @@
#define RADIOLIB_STATIC_ONLY 1
#include <RadioLib.h>
#include <helpers/RadioLibWrappers.h>
#include <helpers/HeltecV3Board.h>
#include <helpers/CustomSX1262Wrapper.h>
#include <helpers/AutoDiscoverRTCClock.h>
#include <helpers/CustomSX1262Wrapper.h>
#include <helpers/HeltecV3Board.h>
#include <helpers/RadioLibWrappers.h>
#include <helpers/SensorManager.h>
#ifdef DISPLAY_CLASS
#include <helpers/ui/E213Display.h>

Loading…
Cancel
Save