A basic graphics package for the LPC4088 Display Module.

Dependents:   lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI lpc4088_displaymodule_fs_aid ... more

Fork of DMBasicGUI by EmbeddedArtists AB

Revision:
21:0038059e3a8f
Parent:
17:6e2abf107800
Child:
22:f0d00f29bfeb
--- a/SlideShow/AppSlideShow.cpp	Mon Mar 23 14:28:07 2015 +0100
+++ b/SlideShow/AppSlideShow.cpp	Wed Oct 23 06:59:53 2019 +0000
@@ -116,11 +116,16 @@
     
     
     // Alternative 1: use the calling thread's context to run in
-    Thread tr(tRender, _rend, osPriorityHigh);
+    //Thread tr(tRender, _rend, osPriorityHigh);
+    Thread tr;
+    tr.start(callback(tRender, _rend));
     
     // Generate the millisecond ticks for the slideshow
-    RtosTimer rtosTimer(ticker, osTimerPeriodic);
-    rtosTimer.start(TICKER_RESOLUTION_IN_MS);    
+    //RtosTimer rtosTimer(ticker, osTimerPeriodic);
+    //rtosTimer.start(TICKER_RESOLUTION_IN_MS);    
+    EventQueue rtosTimer(4*EVENTS_EVENT_SIZE);
+    rtosTimer.call_every(TICKER_RESOLUTION_IN_MS, ticker, &done);
+    rtosTimer.dispatch(0);
 
     // Wait for touches
     TouchPanel* touch = DMBoard::instance().touchPanel();
@@ -136,7 +141,7 @@
        
       done = repeat = false;
       while (!done && !repeat) {
-        Thread::signal_wait(0x1);
+        ThisThread::flags_wait_any(0x1);
         if (touch->read(coord) == TouchPanel::TouchError_Ok) {
           if (_btnDone->handle(coord.x, coord.y, coord.z > 0)) {
             _btnDone->draw();