MCPcopy Create free account
hub / github.com/andysworkshop/stm32plus / processEvents

Method processEvents

examples/pframe/PictureFrame.cpp:91–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 */
90
91void PictureFrame::processEvents() {
92
93 Point p;
94 uint32_t last,now;
95
96 last=MillisecondTimer::millis();
97
98 for(;;) {
99
100 now=MillisecondTimer::millis();
101
102 // test for a wrap on the timer
103
104 if(last>now) {
105 last=now;
106 continue;
107 }
108
109 // time to scroll?
110
111 if(_autoScrollEnabled && now-last>_autoScrollMillis) {
112 _imageManager->nextImage();
113 last=now;
114 }
115
116 // process clicks
117
118 if(processClick())
119 last=MillisecondTimer::millis();
120 }
121}
122
123
124/*

Callers

nothing calls this directly

Calls 1

nextImageMethod · 0.80

Tested by

no test coverage detected