PicoGraphics: Power off added for UC8151.

patch-picographics-1bit-dither
Phil Howard 2022-07-06 14:25:42 +01:00
rodzic 6c1556a429
commit f85343012a
3 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -157,10 +157,10 @@ namespace pimoroni {
public:
void busy_wait();
void reset();
void power_off();
// DisplayDriver API
bool is_busy() override;
void power_off() override;
void update(PicoGraphics *graphics) override;
void partial_update(PicoGraphics *graphics, Rect region) override;
bool set_update_speed(int update_speed) override;

Wyświetl plik

@ -432,6 +432,7 @@ namespace pimoroni {
virtual bool set_update_speed(int update_speed) {return false;};
virtual void set_backlight(uint8_t brightness) {};
virtual bool is_busy() {return false;};
virtual void power_off() {};
virtual void cleanup() {};
};

Wyświetl plik

@ -454,6 +454,8 @@ mp_obj_t ModPicoGraphics_update(mp_obj_t self_in) {
#endif
}
self->display->power_off();
return mp_const_none;
}