Some checks failed
Build and deploy Docs site to GitHub Pages / github-pages (push) Has been cancelled
Run Unit Tests / test (push) Has been cancelled
PR Build Check / build (Heltec_v3_companion_radio_ble) (push) Has been cancelled
PR Build Check / build (Heltec_v3_repeater) (push) Has been cancelled
PR Build Check / build (Heltec_v3_room_server) (push) Has been cancelled
PR Build Check / build (LilyGo_Tlora_C6_repeater_) (push) Has been cancelled
PR Build Check / build (PicoW_repeater) (push) Has been cancelled
PR Build Check / build (RAK_4631_companion_radio_ble) (push) Has been cancelled
PR Build Check / build (RAK_4631_repeater) (push) Has been cancelled
PR Build Check / build (RAK_4631_room_server) (push) Has been cancelled
PR Build Check / build (Tbeam_SX1276_repeater) (push) Has been cancelled
PR Build Check / build (wio-e5-mini_repeater) (push) Has been cancelled
PR Build Check / build (wio_wm1110_repeater) (push) Has been cancelled
25 lines
858 B
C++
25 lines
858 B
C++
#pragma once
|
|
|
|
#include <helpers/ui/DisplayDriver.h>
|
|
|
|
class NullDisplayDriver : public DisplayDriver {
|
|
public:
|
|
NullDisplayDriver() : DisplayDriver(128, 64) { }
|
|
bool begin() { return false; } // not present
|
|
|
|
bool isOn() override { return false; }
|
|
void turnOn() override { }
|
|
void turnOff() override { }
|
|
void clear() override { }
|
|
void startFrame(Color bkg = DARK) override { }
|
|
void setTextSize(int sz) override { }
|
|
void setColor(Color c) override { }
|
|
void setCursor(int x, int y) override { }
|
|
void print(const char* str) override { }
|
|
void fillRect(int x, int y, int w, int h) override { }
|
|
void drawRect(int x, int y, int w, int h) override { }
|
|
void drawXbm(int x, int y, const uint8_t* bits, int w, int h) override { }
|
|
uint16_t getTextWidth(const char* str) override { return 0; }
|
|
void endFrame() { }
|
|
};
|