Skip to content

Commit

Permalink
Added screen clear when selecting an icon in TouchIconTest
Browse files Browse the repository at this point in the history
  • Loading branch information
nopnop2002 committed Dec 19, 2024
1 parent d9f927f commit ebcbe07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1667,6 +1667,9 @@ void TouchIconTest(TFT_t * dev, FontxFile *fx, int width, int height, TickType_t

// Distance is in range
if (_radius < 30.0) {
// Clear Screen
lcdFillScreen(dev, BLACK);
lcdDrawFinish(dev);
// Show large image
ESP_LOGI(__FUNCTION__, "area.text=[%s]", area[0].text);
char file[64];
Expand Down Expand Up @@ -2162,8 +2165,8 @@ void TFT(void *pvParameters)
TouchKeyTest(&dev, fx32G, CONFIG_WIDTH, CONFIG_HEIGHT, 1000);
TouchMenuTest(&dev, fx24G, CONFIG_WIDTH, CONFIG_HEIGHT, 1000);
TouchMoveTest(&dev, fx24G, CONFIG_WIDTH, CONFIG_HEIGHT, 1000);
TouchIconTest(&dev, fx24G, CONFIG_WIDTH, CONFIG_HEIGHT, 1000);
lcdResumeFrameBuffer(&dev);
TouchIconTest(&dev, fx24G, CONFIG_WIDTH, CONFIG_HEIGHT, 1000);
#endif


Expand Down

0 comments on commit ebcbe07

Please sign in to comment.