Parcourir la source

New overload for drawBitmap to support background color.

schlammbad il y a 12 ans
Parent
commit
01273c2ad2
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      Adafruit_GFX.h

+ 3 - 0
Adafruit_GFX.h

@@ -66,6 +66,9 @@ class Adafruit_GFX : public Print {
   void drawBitmap(int16_t x, int16_t y, 
 		  const uint8_t *bitmap, int16_t w, int16_t h,
 		  uint16_t color);
+  void drawBitmap(int16_t x, int16_t y,
+		  const uint8_t *bitmap, int16_t x, int16_t h,
+		  uint16_t color, uint16_t bg);
   void drawChar(int16_t x, int16_t y, unsigned char c,
 		uint16_t color, uint16_t bg, uint8_t size);
 #if ARDUINO >= 100