Skip to content

Commit 25e5a7e

Browse files
committed
add function to clear specific point
1 parent 7c0ecdd commit 25e5a7e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/ArduinoGraphics.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ void ArduinoGraphics::clear()
8888
}
8989
}
9090

91+
void ArduinoGraphics::clear(int x, int y)
92+
{
93+
set(x, y, _backgroundR, _backgroundB, _backgroundG);
94+
}
95+
9196
void ArduinoGraphics::fill(uint8_t r, uint8_t g, uint8_t b)
9297
{
9398
_fill = true;

src/ArduinoGraphics.h

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class ArduinoGraphics : public Print {
5050
void background(uint8_t r, uint8_t g, uint8_t b);
5151
void background(uint32_t color);
5252
void clear();
53+
void clear(int x, int y); //clear specific point
5354
void fill(uint8_t r, uint8_t g, uint8_t b);
5455
void fill(uint32_t color);
5556
void noFill();

0 commit comments

Comments
 (0)