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

Function demo

samples/ScreenTFT_ILI9163C/app/application.cpp:19–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17SimpleTimer timer;
18
19void demo()
20{
21 Serial.println(_F("Display start"));
22 tft.begin();
23 tft.setRotation(2); // try yourself
24 tft.fillScreen();
25 tft.fillRect(10, 20, 100, 120, YELLOW);
26
27 timer.initializeMs<1000>([]() {
28 // text display tests
29 tft.fillScreen();
30 tft.setTextSize(1);
31 tft.setTextColor(GREEN);
32 tft.setCursor(0, 0);
33 tft.println(_F("Sming Framework"));
34 tft.setTextColor(BLACK, WHITE); // 'inverted' text
35 tft.setCursor(104, 7);
36 tft.println("v1.0");
37 tft.setTextColor(WHITE);
38 tft.println(_F("Let's do smart things"));
39 tft.setTextSize(3);
40 tft.setTextColor(BLUE);
41 tft.print("IoT");
42 });
43 timer.startOnce();
44}
45
46} // namespace
47

Callers 1

initFunction · 0.70

Calls 8

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

Tested by

no test coverage detected