From 392aec889cff9400d512970868a6dcfba3b72ce1 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 28 Nov 2021 22:15:38 +0100 Subject: framebuffer: add drawBattery function --- include/object/framebuffer.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/object') diff --git a/include/object/framebuffer.h b/include/object/framebuffer.h index bfbd215..90be12b 100644 --- a/include/object/framebuffer.h +++ b/include/object/framebuffer.h @@ -23,6 +23,7 @@ class Framebuffer : public OutputStream void scroll(); void fillBox(unsigned int x, unsigned int y, unsigned int w, unsigned int h); void drawAt(unsigned int x, unsigned int y, unsigned int w, unsigned int h, unsigned char *image); + void drawBattery(unsigned int x, unsigned int y, unsigned char percent); void setFont(const glyph_t *font) { this->font = font; } void setPos(unsigned int newX, unsigned int newY) { fontX = newX; fontY = newY; } virtual void put(char c) override; -- cgit v1.2.3