Skip to content

Commit

Permalink
Adafruit_TFTLCD_16bit_STM32: Unhide drawBitmap functions
Browse files Browse the repository at this point in the history
  • Loading branch information
vovan888 committed Aug 24, 2020
1 parent be7040f commit 0c4a087
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ void Adafruit_TFTLCD_16bit_STM32::drawPixel(int16_t x, int16_t y, uint16_t color
/*****************************************************************************/
// Draw an image bitmap (16bits per color) at the specified position from the provided buffer.
/*****************************************************************************/
void Adafruit_TFTLCD_16bit_STM32::drawBitmap(int16_t x, int16_t y, int16_t w, int16_t h, const uint16_t * bitmap)
void Adafruit_TFTLCD_16bit_STM32::drawRGBBitmap(int16_t x, int16_t y, int16_t w, int16_t h, const uint16_t * bitmap)
{
if ( x>=0 && (x+w)<_width && y>=0 && (y+h)<=_height ) {
// all pixel visible, do it in the fast way
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ class Adafruit_TFTLCD_16bit_STM32 : public Adafruit_GFX {
void setRotation(uint8_t x);
// These methods are public in order for BMP examples to work:
void setAddrWindow(int16_t x1, int16_t y1, int16_t x2, int16_t y2);
void invertDisplay(boolean i),
pushColors(uint16_t *data, int16_t len, boolean first),
drawBitmap(int16_t x, int16_t y, int16_t w, int16_t h, const uint16_t * bitmap);
void invertDisplay(boolean i);
void pushColors(uint16_t *data, int16_t len, boolean first);
void drawRGBBitmap(int16_t x, int16_t y, int16_t w, int16_t h, const uint16_t * bitmap);
uint16_t color565(uint8_t r, uint8_t g, uint8_t b);
#if 0 // used TFT cannot be read
uint16_t readPixel(int16_t x, int16_t y),
Expand Down

0 comments on commit 0c4a087

Please sign in to comment.