Waveshare e-ink 2IN9_V2 - fix full and partial update based on vendor SDK and examples (#5481)

Co-authored-by: Clyde Stubbs <2366188+clydebarrow@users.noreply.github.com>
This commit is contained in:
Darek
2024-02-27 21:29:56 +01:00
committed by GitHub
parent f73518dbeb
commit 37138d4f28
3 changed files with 247 additions and 0 deletions
@@ -337,6 +337,36 @@ class WaveshareEPaper2P9InBV3 : public WaveshareEPaper {
int get_height_internal() override;
};
class WaveshareEPaper2P9InV2R2 : public WaveshareEPaper {
public:
WaveshareEPaper2P9InV2R2();
void initialize() override;
void display() override;
void dump_config() override;
void deep_sleep() override;
void set_full_update_every(uint32_t full_update_every);
protected:
void write_lut_(const uint8_t *lut, uint8_t size);
int get_width_internal() override;
int get_height_internal() override;
int get_width_controller() override;
uint32_t full_update_every_{30};
uint32_t at_update_{0};
private:
void reset_();
};
class WaveshareEPaper4P2In : public WaveshareEPaper {
public:
void initialize() override;