MCPcopy Create free account
hub / github.com/SmingHub/Sming / demo

Function demo

samples/ScreenTFT_ILI9340-ILI9341/app/application.cpp:78–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void 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

Callers 1

initFunction · 0.70

Calls 6

printlnMethod · 0.80
fillScreenMethod · 0.80
setRotationMethod · 0.80
startOnceMethod · 0.80
beginMethod · 0.45
setCursorMethod · 0.45

Tested by

no test coverage detected