The out-of-the-box demo application flashed on all display modules before they are shipped.
Dependencies: DMBasicGUI DMSupport
This is the software that is flashed on the LPC4088 Display Modules before they are shipped from Embedded Artists.
Information
This project works on both the 4.3" and 5" display modules but requires different file systems to handle the different display resolutions.
For the 4.3" displays first drag-n-drop the media/fs_480_raw.fs5 (if you are using the new DAPLINK firmware use fs_480_raw.hex) file to the MBED drive and then drag-n-drop the demo itself. This way both the file system and software are up to date.
For the 5" displays first drag-n-drop the media/fs_800_raw.fsF (if you are using the new DAPLINK firmware use fs_800_raw.hex) file to the MBED drive and then drag-n-drop the demo itself. This way both the file system and software are up to date.
There is a prebuilt version of the demo binary here.
This is what it looks like on a 4.3" display:
The first slide from the Slideshow:
A couple of images from the Image Viewer
Diff: AppLauncherSpecial.cpp
- Revision:
- 5:6ca8470ba8f8
- Parent:
- 2:229f88d6f56b
--- a/AppLauncherSpecial.cpp Tue Apr 28 12:21:14 2015 +0000 +++ b/AppLauncherSpecial.cpp Tue Nov 05 09:11:36 2019 +0000 @@ -163,8 +163,8 @@ // Render the current time in the upper right corner once every second bool updateClock = false; - RtosTimer updateClockTimer(onTimeoutEvent, osTimerPeriodic, &updateClock); - updateClockTimer.start(1000); + EventQueue updateClockTimer(4*EVENTS_EVENT_SIZE); + int updateClockTimerId = updateClockTimer.call_in(1000, onTimeoutEvent, &updateClock); int clockXOff, clockYOff; swim_get_string_bounds(_win, "Fri Mar 20 10:32:58 2015", &clockXOff, &clockYOff); clockXOff = _win->xpvmax - clockXOff - 20; @@ -174,9 +174,11 @@ bool buttonPressed = false; bool buttonTimeout = false; InterruptIn button(P2_10); - button.rise(this, &AppLauncherSpecial::onButtonEvent); - button.fall(this, &AppLauncherSpecial::onButtonEvent); - RtosTimer buttonTimer(onTimeoutEvent, osTimerOnce, &buttonTimeout); + button.rise(callback(this, &AppLauncherSpecial::onButtonEvent)); + button.fall(callback(this, &AppLauncherSpecial::onButtonEvent)); + + EventQueue buttonTimer(4*EVENTS_EVENT_SIZE); + int buttonTimerId = buttonTimer.call_in(2000, onTimeoutEvent, &buttonTimeout); // To prevent the "exit" click of a launched application to launch // a new application. This could happen on a multitouch display if @@ -187,15 +189,15 @@ // Wait for touches TouchPanel* touch = board->touchPanel(); - touch->setListener(new FunctionPointer(this, &AppLauncherSpecial::onTouchEvent)); + touch->setListener(callback(this, &AppLauncherSpecial::onTouchEvent)); touch_coordinate_t coord; while (true) { - Thread::signal_wait(APP_SIGID_TOUCH); + ThisThread::flags_wait_all(APP_SIGID_TOUCH); if (_newTouchEvent) { if (buttonPressed) { // cancel buttonPressed = false; - buttonTimer.stop(); + buttonTimer.cancel(buttonTimerId); } _newTouchEvent = false; if (touch->read(coord) != TouchPanel::TouchError_Ok) { @@ -220,10 +222,10 @@ _newButtonEvent = false; if (board->buttonPressed()) { buttonPressed = true; - buttonTimer.start(2000); + buttonTimer.dispatch(0); } else { buttonPressed = false; - buttonTimer.stop(); + buttonTimer.cancel(buttonTimerId); } continue; } else if (updateClock) {