Skip to content

Commit 676f83c

Browse files
committed
add function to clear specific point
1 parent 4241408 commit 676f83c

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
@@ -96,6 +96,11 @@ void ArduinoGraphics::clear()
9696
}
9797
}
9898

99+
void ArduinoGraphics::clear(int x, int y)
100+
{
101+
set(x, y, _backgroundR, _backgroundB, _backgroundG);
102+
}
103+
99104
void ArduinoGraphics::fill(uint8_t r, uint8_t g, uint8_t b)
100105
{
101106
_fill = true;

src/ArduinoGraphics.h

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

0 commit comments

Comments
 (0)