From 9643a6eae65a64cd0781ecde83a795585bf5ab03 Mon Sep 17 00:00:00 2001 From: Jeff McBride Date: Mon, 21 Feb 2022 08:55:45 -0800 Subject: [PATCH] Add drawBitmap method to ColorGraphicsDisplay interface --- src/modm/ui/display/color_graphic_display.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/modm/ui/display/color_graphic_display.hpp b/src/modm/ui/display/color_graphic_display.hpp index c9a6cbf5ef..66eacd6f93 100644 --- a/src/modm/ui/display/color_graphic_display.hpp +++ b/src/modm/ui/display/color_graphic_display.hpp @@ -51,6 +51,21 @@ class ColorGraphicDisplay : public GraphicDisplay return backgroundColor; } + /** + * Draw a bitmap with 16-bit 565 colored pixels. + * + * \p data is series of pixel color values + */ + virtual void drawBitmap( + glcd::Point upperLeft, + uint16_t width, + uint16_t height, + modm::accessor::Flash data) + { + modm_assert(false, "noDrawBitmap", + "drawBitmap method is not implemented on ColorGraphicsDisplay implementation"); + }; + protected: color::Rgb565 foregroundColor; color::Rgb565 backgroundColor;