Просмотр исходного кода

New overload for drawBitmap to support background color.

schlammbad лет назад: 12
Родитель
Сommit
01273c2ad2
1 измененных файлов с 3 добавлено и 0 удалено
  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