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