kopia lustrzana https://github.com/pimoroni/pimoroni-pico
PicoGraphics: Power off added for UC8151.
rodzic
6c1556a429
commit
f85343012a
|
@ -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;
|
||||
|
|
|
@ -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() {};
|
||||
};
|
||||
|
||||
|
|
|
@ -454,6 +454,8 @@ mp_obj_t ModPicoGraphics_update(mp_obj_t self_in) {
|
|||
#endif
|
||||
}
|
||||
|
||||
self->display->power_off();
|
||||
|
||||
return mp_const_none;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue