Example using the support package for LPC4088 DisplayModule

Dependencies:   DMBasicGUI DMSupport

Example using a lot of the features in the software package for the LPC4088 Display Module.

This project can be selected as a template when creating a new project based on the LPC4088 Display Module.

Information

This project works on the 4.3" display modules.

Some of the apps works on the 5" display modules. The ImageViewer and Slideshow app will show the images distorted as it does not take the resolution into consideration.

Information

The USB Status app is disabled. The Image viewer looks for images in the root of SD cards, USB memory sticks or the file system on the QSPI flash. The Slideshow app expects to find a slideshow script in /mci/elec14/ea_logo.txt.

This is what it looks like on the 4.3" display:

/media/uploads/embeddedartists/everything_cap_000.png /media/uploads/embeddedartists/everything_cap_001.png /media/uploads/embeddedartists/everything_cap_003.png /media/uploads/embeddedartists/everything_cap_004.png /media/uploads/embeddedartists/everything_cap_006.png /media/uploads/embeddedartists/everything_cap_008.png

Committer:
alindvall
Date:
Tue Apr 28 11:49:03 2015 +0000
Revision:
29:be8b784873f5
Parent:
26:f07df116f3c9
Updated to latest version of the DMSupport library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
embeddedartists 24:768f5958c308 1 /*
embeddedartists 24:768f5958c308 2 * Copyright 2014 Embedded Artists AB
embeddedartists 24:768f5958c308 3 *
embeddedartists 24:768f5958c308 4 * Licensed under the Apache License, Version 2.0 (the "License");
embeddedartists 24:768f5958c308 5 * you may not use this file except in compliance with the License.
embeddedartists 24:768f5958c308 6 * You may obtain a copy of the License at
embeddedartists 24:768f5958c308 7 *
embeddedartists 24:768f5958c308 8 * http://www.apache.org/licenses/LICENSE-2.0
embeddedartists 24:768f5958c308 9 *
embeddedartists 24:768f5958c308 10 * Unless required by applicable law or agreed to in writing, software
embeddedartists 24:768f5958c308 11 * distributed under the License is distributed on an "AS IS" BASIS,
embeddedartists 24:768f5958c308 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
embeddedartists 24:768f5958c308 13 * See the License for the specific language governing permissions and
embeddedartists 24:768f5958c308 14 * limitations under the License.
embeddedartists 24:768f5958c308 15 */
embeddedartists 24:768f5958c308 16
embeddedartists 24:768f5958c308 17 #ifndef APP_DRAW_H
embeddedartists 24:768f5958c308 18 #define APP_DRAW_H
embeddedartists 24:768f5958c308 19
embeddedartists 24:768f5958c308 20 #include "App.h"
embeddedartists 24:768f5958c308 21 #include "DMBoard.h"
embeddedartists 24:768f5958c308 22 #include "lpc_swim.h"
embeddedartists 24:768f5958c308 23 #include "ImageButton.h"
embeddedartists 24:768f5958c308 24
embeddedartists 24:768f5958c308 25 /**
embeddedartists 24:768f5958c308 26 * An App example. Lets the user draw on the screen. Each finger is
embeddedartists 24:768f5958c308 27 * assigned it's own color.
embeddedartists 24:768f5958c308 28 *
embeddedartists 24:768f5958c308 29 * The purpose of this example is to show the use of a multitouch
embeddedartists 24:768f5958c308 30 * display.
embeddedartists 24:768f5958c308 31 */
embeddedartists 24:768f5958c308 32 class AppDraw : public App {
embeddedartists 24:768f5958c308 33 public:
embeddedartists 24:768f5958c308 34
embeddedartists 26:f07df116f3c9 35 AppDraw();
embeddedartists 26:f07df116f3c9 36 virtual ~AppDraw();
embeddedartists 24:768f5958c308 37
embeddedartists 24:768f5958c308 38 virtual bool setup();
embeddedartists 24:768f5958c308 39 virtual void runToCompletion();
embeddedartists 24:768f5958c308 40 virtual bool teardown();
embeddedartists 24:768f5958c308 41
embeddedartists 24:768f5958c308 42 private:
embeddedartists 24:768f5958c308 43 enum Constants {
embeddedartists 24:768f5958c308 44 MaxSupportedFingers = 5,
embeddedartists 24:768f5958c308 45 };
embeddedartists 24:768f5958c308 46 Display* _disp;
embeddedartists 24:768f5958c308 47 SWIM_WINDOW_T* _win;
embeddedartists 24:768f5958c308 48 void* _fb;
embeddedartists 24:768f5958c308 49 ImageButton* _btn;
embeddedartists 24:768f5958c308 50 touch_coordinate_t _coords[MaxSupportedFingers];
embeddedartists 24:768f5958c308 51
embeddedartists 24:768f5958c308 52 void draw();
embeddedartists 24:768f5958c308 53 };
embeddedartists 24:768f5958c308 54
embeddedartists 24:768f5958c308 55 #endif