From fb9e169398926aad897b76d9b0849f89f97140b8 Mon Sep 17 00:00:00 2001 From: Phillip Burgess Date: Sun, 27 Dec 2015 21:29:50 -0800 Subject: [PATCH] Manual merge of TheNotary's RAM-based bitmap functions. --- Adafruit_GFX.cpp | 28 ++++++++++++++++++++++++++++ Adafruit_GFX.h | 4 ++++ 2 files changed, 32 insertions(+) diff --git a/Adafruit_GFX.cpp b/Adafruit_GFX.cpp index 2c1413c0..3a45ab45 100644 --- a/Adafruit_GFX.cpp +++ b/Adafruit_GFX.cpp @@ -388,6 +388,34 @@ void Adafruit_GFX::drawBitmap(int16_t x, int16_t y, } } +void Adafruit_GFX::drawBitmap(int16_t x, int16_t y, + uint8_t *bitmap, int16_t w, int16_t h, uint16_t color) { + + int16_t i, j, byteWidth = (w + 7) / 8; + + for(j=0; j