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

AppDraw.h

Committer:
embeddedartists
Date:
2019-11-04
Revision:
30:e1cded731965
Parent:
26:f07df116f3c9

File content as of revision 30:e1cded731965:

/*
 *  Copyright 2014 Embedded Artists AB
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

#ifndef APP_DRAW_H
#define APP_DRAW_H

#include "App.h"
#include "DMBoard.h"
#include "lpc_swim.h"
#include "ImageButton.h"

/**
 * An App example. Lets the user draw on the screen. Each finger is 
 * assigned it's own color.
 *
 * The purpose of this example is to show the use of a multitouch
 * display.
 */
class AppDraw : public App {
public:

    AppDraw();
    virtual ~AppDraw();

    virtual bool setup();
    virtual void runToCompletion();
    virtual bool teardown();

private:
    enum Constants {
        MaxSupportedFingers = 5,
    };
    Display* _disp;
    SWIM_WINDOW_T* _win;
    void* _fb;
    ImageButton* _btn;
    touch_coordinate_t _coords[MaxSupportedFingers];

    void draw();
};

#endif