Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void loop()
{
if ((e - s) > 0)
{
int x, x1, x2, y, y1, y2, x3, y3, l, c, w, h, r, n, rx, ry, xc, yc;
int x, x1, x2, y, y1, y2, x3, y3, l, c, w, h, r, n, rx, ry, xc, yc, fgColor, bgColor;
char b;
char temp[150];
switch (*(s + 1))
Expand Down Expand Up @@ -196,6 +196,11 @@ void loop()
display.setRotation(c);
break;

case 'H':
// Set text and background color
sscanf(s + 3, "%d,%d", &fgColor, &bgColor);
display.setTextColor(fgColor, bgColor);
break;

case 'K':
// Clear the display (frame buffer only)
Expand Down