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

Function displayTest

samples/ScreenLCD_5110/app/application.cpp:14–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12SimpleTimer timer;
13
14void displayTest()
15{
16 display.begin();
17 display.setContrast(10);
18 display.display(); // show splashscreen
19 debug_d("Show splash...");
20
21 timer.initializeMs<2000>([]() {
22 debug_d("Update screen.");
23 display.clearDisplay(); // no changes will be visible until display() is called
24 display.setRotation(4); // rotate 90 degrees counter clockwise, can also use values of 2 and 3 to go further.
25 display.setTextSize(1);
26 display.setTextColor(BLACK);
27 display.setCursor(0, 0);
28 display.println("Sming");
29 display.setTextSize(2);
30 display.println("Example");
31 display.display();
32 });
33 timer.startOnce();
34}
35
36} // namespace
37

Callers 1

initFunction · 0.85

Calls 6

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

Tested by

no test coverage detected