| 76 | } |
| 77 | |
| 78 | void demo() |
| 79 | { |
| 80 | Serial.println(_F("Display start")); |
| 81 | |
| 82 | // text display tests |
| 83 | tft.begin(); |
| 84 | tft.fillScreen(0); |
| 85 | tft.setRotation(1); |
| 86 | tft.setTextSize(2); |
| 87 | |
| 88 | tft.setTextColor(ILI9341_GREEN); |
| 89 | tft.setCursor(0, 0); |
| 90 | tft.setCursor(60, 60); |
| 91 | tft.println(_F("Sming Framework")); |
| 92 | tft.setTextColor(ILI9341_WHITE, ILI9341_BLACK); // text |
| 93 | tft.setCursor(60, 75); |
| 94 | tft.println(" v1.1"); |
| 95 | tft.setTextColor(ILI9341_CYAN); |
| 96 | tft.setCursor(60, 90); |
| 97 | tft.println(_F("ili9340-40C-41 ")); |
| 98 | tft.setCursor(60, 125); |
| 99 | tft.println(_F("M.Bozkurt")); |
| 100 | |
| 101 | guiTimer.initializeMs<2000>([]() { |
| 102 | tft.fillScreen(0); |
| 103 | guiTimer.initializeMs<1000>(basicGui).startOnce(); |
| 104 | }); |
| 105 | guiTimer.startOnce(); |
| 106 | } |
| 107 | |
| 108 | } // namespace |
| 109 |
no test coverage detected