mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-06 18:08:00 +00:00
Implement the GDEY0213B74 driver with configuration methods for scanning, waveform, update sequence, and polling for refresh completion. This driver supports both fast and full update types for the 2.13 inch E-Ink display. Signed-off-by: ChihoSin chihosin@icloud.com Signed-off-by: ChihoSin chihosin@icloud.com
42 lines
893 B
C++
42 lines
893 B
C++
/*
|
|
|
|
E-Ink display driver
|
|
- GDEY0213B74
|
|
- Manufacturer: Goodisplay
|
|
- Size: 2.13 inch
|
|
- Resolution: 250px x 122px
|
|
- Flex connector marking: FPC-A002
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifdef MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
|
|
|
#include "configuration.h"
|
|
|
|
#include "./SSD16XX.h"
|
|
|
|
namespace NicheGraphics::Drivers
|
|
{
|
|
class GDEY0213B74 : public SSD16XX
|
|
{
|
|
// Display properties
|
|
private:
|
|
static constexpr uint32_t width = 122;
|
|
static constexpr uint32_t height = 250;
|
|
static constexpr UpdateTypes supported = (UpdateTypes)(FULL | FAST);
|
|
|
|
public:
|
|
GDEY0213B74() : SSD16XX(width, height, supported) {}
|
|
|
|
protected:
|
|
virtual void configScanning() override;
|
|
virtual void configWaveform() override;
|
|
virtual void configUpdateSequence() override;
|
|
void detachFromUpdate() override;
|
|
};
|
|
|
|
} // namespace NicheGraphics::Drivers
|
|
|
|
#endif // MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|