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:
embeddedartists
Date:
Mon Nov 04 14:33:29 2019 +0000
Revision:
30:e1cded731965
Parent:
26:f07df116f3c9
More updates related to mbed OS 5

Who changed what in which revision?

UserRevisionLine numberNew contents of line
embeddedartists 18:715f542538b3 1 /*
embeddedartists 18:715f542538b3 2 * Copyright 2014 Embedded Artists AB
embeddedartists 18:715f542538b3 3 *
embeddedartists 18:715f542538b3 4 * Licensed under the Apache License, Version 2.0 (the "License");
embeddedartists 18:715f542538b3 5 * you may not use this file except in compliance with the License.
embeddedartists 18:715f542538b3 6 * You may obtain a copy of the License at
embeddedartists 18:715f542538b3 7 *
embeddedartists 18:715f542538b3 8 * http://www.apache.org/licenses/LICENSE-2.0
embeddedartists 18:715f542538b3 9 *
embeddedartists 18:715f542538b3 10 * Unless required by applicable law or agreed to in writing, software
embeddedartists 18:715f542538b3 11 * distributed under the License is distributed on an "AS IS" BASIS,
embeddedartists 18:715f542538b3 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
embeddedartists 18:715f542538b3 13 * See the License for the specific language governing permissions and
embeddedartists 18:715f542538b3 14 * limitations under the License.
embeddedartists 18:715f542538b3 15 */
embeddedartists 18:715f542538b3 16
embeddedartists 18:715f542538b3 17 #ifndef APP_RTC_SETTINGS_H
embeddedartists 18:715f542538b3 18 #define APP_RTC_SETTINGS_H
embeddedartists 18:715f542538b3 19
embeddedartists 18:715f542538b3 20 #include "App.h"
embeddedartists 18:715f542538b3 21 #include "DMBoard.h"
embeddedartists 18:715f542538b3 22 #include "lpc_swim.h"
embeddedartists 18:715f542538b3 23 #include "Button.h"
embeddedartists 18:715f542538b3 24 #include "ImageButton.h"
embeddedartists 18:715f542538b3 25 #include "DigitButton.h"
embeddedartists 18:715f542538b3 26
embeddedartists 18:715f542538b3 27 /**
embeddedartists 26:f07df116f3c9 28 * An App example making it possible to change the real time clock (RTC).
embeddedartists 18:715f542538b3 29 *
embeddedartists 18:715f542538b3 30 * The purpose of this example is to show some of the graphics primitives in
embeddedartists 18:715f542538b3 31 * the SWIM library.
embeddedartists 18:715f542538b3 32 */
embeddedartists 18:715f542538b3 33 class AppRTCSettings : public App {
embeddedartists 18:715f542538b3 34 public:
embeddedartists 18:715f542538b3 35
embeddedartists 26:f07df116f3c9 36 AppRTCSettings();
embeddedartists 26:f07df116f3c9 37 virtual ~AppRTCSettings();
embeddedartists 18:715f542538b3 38
embeddedartists 18:715f542538b3 39 virtual bool setup();
embeddedartists 18:715f542538b3 40 virtual void runToCompletion();
embeddedartists 18:715f542538b3 41 virtual bool teardown();
embeddedartists 18:715f542538b3 42
embeddedartists 18:715f542538b3 43 void modifyValue(int mod);
embeddedartists 18:715f542538b3 44 void changeActiveField(bool next);
embeddedartists 18:715f542538b3 45 void setActiveField(uint32_t newField);
embeddedartists 18:715f542538b3 46
embeddedartists 18:715f542538b3 47 private:
embeddedartists 18:715f542538b3 48 enum Buttons {
embeddedartists 18:715f542538b3 49 ButtonYear,
embeddedartists 18:715f542538b3 50 ButtonMonth,
embeddedartists 18:715f542538b3 51 ButtonDay,
embeddedartists 18:715f542538b3 52 ButtonHour,
embeddedartists 18:715f542538b3 53 ButtonMinute,
embeddedartists 18:715f542538b3 54 ButtonSecond,
embeddedartists 18:715f542538b3 55 ButtonOk,
embeddedartists 18:715f542538b3 56 ButtonCancel,
embeddedartists 18:715f542538b3 57 ButtonUp,
embeddedartists 18:715f542538b3 58 ButtonDown,
embeddedartists 18:715f542538b3 59 ButtonLeft,
embeddedartists 18:715f542538b3 60 ButtonRight,
embeddedartists 18:715f542538b3 61 NumButtons,
embeddedartists 18:715f542538b3 62 NumFields = ButtonOk,
embeddedartists 18:715f542538b3 63 };
embeddedartists 18:715f542538b3 64
embeddedartists 18:715f542538b3 65 Display* _disp;
embeddedartists 18:715f542538b3 66 SWIM_WINDOW_T* _win;
embeddedartists 18:715f542538b3 67 void* _fb;
embeddedartists 18:715f542538b3 68
embeddedartists 18:715f542538b3 69 Clickable* _buttons[NumButtons];
embeddedartists 18:715f542538b3 70
embeddedartists 22:7e59255933b5 71 uint32_t _activeField;
embeddedartists 18:715f542538b3 72 uint32_t _values[NumFields];
embeddedartists 18:715f542538b3 73
embeddedartists 18:715f542538b3 74 Image::ImageData_t _digitImage;
embeddedartists 18:715f542538b3 75
embeddedartists 18:715f542538b3 76 void draw();
embeddedartists 18:715f542538b3 77 void markField(int field, bool active);
embeddedartists 18:715f542538b3 78 void addDateFields(int xoff, int yoff);
embeddedartists 18:715f542538b3 79 void addTimeFields(int xoff, int yoff);
embeddedartists 18:715f542538b3 80 };
embeddedartists 18:715f542538b3 81
embeddedartists 18:715f542538b3 82 #endif