mirror of
https://github.com/adafruit/Adafruit-GFX-Library.git
synced 2024-10-03 18:18:46 -04:00
Merge 3ca0b6a9d7
into 0e32d7dc76
This commit is contained in:
commit
bcdb3d2c51
@ -172,6 +172,20 @@ void Adafruit_GFX::writeLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1,
|
||||
}
|
||||
}
|
||||
|
||||
/**************************************************************************/
|
||||
/*!
|
||||
@brief Clear the display, overwrite in subclasses.
|
||||
*/
|
||||
/**************************************************************************/
|
||||
void Adafruit_GFX::clearDisplay() {}
|
||||
|
||||
/**************************************************************************/
|
||||
/*!
|
||||
@brief Update the display, overwrite in subclasses.
|
||||
*/
|
||||
/**************************************************************************/
|
||||
void Adafruit_GFX::display() {}
|
||||
|
||||
/**************************************************************************/
|
||||
/*!
|
||||
@brief Start a display-writing routine, overwrite in subclasses.
|
||||
|
@ -10,7 +10,9 @@
|
||||
#include "gfxfont.h"
|
||||
|
||||
#include <Adafruit_I2CDevice.h>
|
||||
#ifndef SKIP_SPI
|
||||
#include <Adafruit_SPIDevice.h>
|
||||
#endif
|
||||
|
||||
/// A generic graphics superclass that can handle all sorts of drawing. At a
|
||||
/// minimum you can subclass and provide drawPixel(). At a maximum you can do a
|
||||
@ -43,6 +45,8 @@ public:
|
||||
virtual void writeLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1,
|
||||
uint16_t color);
|
||||
virtual void endWrite(void);
|
||||
virtual void clearDisplay(void);
|
||||
virtual void display(void);
|
||||
|
||||
// CONTROL API
|
||||
// These MAY be overridden by the subclass to provide device-specific
|
||||
|
Loading…
Reference in New Issue
Block a user