Demo for Embedded World 2015.
Dependencies: DMBasicGUI DMSupport
Demo running on several LPC4088 Display Modules on the Embedded World 2015 exhibition.
Information
To run the demo first drag-n-drop the to_sync.fs3 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.
This is what the launcher will look like:
AppStatus.h@0:6bd24cbb88a1, 2015-02-19 (annotated)
- Committer:
- alindvall
- Date:
- Thu Feb 19 13:54:53 2015 +0000
- Revision:
- 0:6bd24cbb88a1
First public version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
alindvall | 0:6bd24cbb88a1 | 1 | /* |
alindvall | 0:6bd24cbb88a1 | 2 | * Copyright 2014 Embedded Artists AB |
alindvall | 0:6bd24cbb88a1 | 3 | * |
alindvall | 0:6bd24cbb88a1 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
alindvall | 0:6bd24cbb88a1 | 5 | * you may not use this file except in compliance with the License. |
alindvall | 0:6bd24cbb88a1 | 6 | * You may obtain a copy of the License at |
alindvall | 0:6bd24cbb88a1 | 7 | * |
alindvall | 0:6bd24cbb88a1 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
alindvall | 0:6bd24cbb88a1 | 9 | * |
alindvall | 0:6bd24cbb88a1 | 10 | * Unless required by applicable law or agreed to in writing, software |
alindvall | 0:6bd24cbb88a1 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
alindvall | 0:6bd24cbb88a1 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
alindvall | 0:6bd24cbb88a1 | 13 | * See the License for the specific language governing permissions and |
alindvall | 0:6bd24cbb88a1 | 14 | * limitations under the License. |
alindvall | 0:6bd24cbb88a1 | 15 | */ |
alindvall | 0:6bd24cbb88a1 | 16 | |
alindvall | 0:6bd24cbb88a1 | 17 | #ifndef APP_STATUS_H |
alindvall | 0:6bd24cbb88a1 | 18 | #define APP_STATUS_H |
alindvall | 0:6bd24cbb88a1 | 19 | |
alindvall | 0:6bd24cbb88a1 | 20 | #include "App.h" |
alindvall | 0:6bd24cbb88a1 | 21 | #include "DMBoard.h" |
alindvall | 0:6bd24cbb88a1 | 22 | #include "lpc_swim.h" |
alindvall | 0:6bd24cbb88a1 | 23 | #include "ImageButton.h" |
alindvall | 0:6bd24cbb88a1 | 24 | |
alindvall | 0:6bd24cbb88a1 | 25 | /** |
alindvall | 0:6bd24cbb88a1 | 26 | * An App example. Static display of information. |
alindvall | 0:6bd24cbb88a1 | 27 | * |
alindvall | 0:6bd24cbb88a1 | 28 | * The purpose of this example is to show some of the graphics primitives in |
alindvall | 0:6bd24cbb88a1 | 29 | * the SWIM library. |
alindvall | 0:6bd24cbb88a1 | 30 | */ |
alindvall | 0:6bd24cbb88a1 | 31 | class AppStatus : public App { |
alindvall | 0:6bd24cbb88a1 | 32 | public: |
alindvall | 0:6bd24cbb88a1 | 33 | |
alindvall | 0:6bd24cbb88a1 | 34 | AppStatus(); |
alindvall | 0:6bd24cbb88a1 | 35 | virtual ~AppStatus(); |
alindvall | 0:6bd24cbb88a1 | 36 | |
alindvall | 0:6bd24cbb88a1 | 37 | virtual bool setup(); |
alindvall | 0:6bd24cbb88a1 | 38 | virtual void runToCompletion(); |
alindvall | 0:6bd24cbb88a1 | 39 | virtual bool teardown(); |
alindvall | 0:6bd24cbb88a1 | 40 | |
alindvall | 0:6bd24cbb88a1 | 41 | private: |
alindvall | 0:6bd24cbb88a1 | 42 | Display* _disp; |
alindvall | 0:6bd24cbb88a1 | 43 | SWIM_WINDOW_T* _win; |
alindvall | 0:6bd24cbb88a1 | 44 | void* _fb; |
alindvall | 0:6bd24cbb88a1 | 45 | ImageButton* _btn; |
alindvall | 0:6bd24cbb88a1 | 46 | Image::ImageData_t _bgImg; |
alindvall | 0:6bd24cbb88a1 | 47 | |
alindvall | 0:6bd24cbb88a1 | 48 | void draw(); |
alindvall | 0:6bd24cbb88a1 | 49 | }; |
alindvall | 0:6bd24cbb88a1 | 50 | |
alindvall | 0:6bd24cbb88a1 | 51 | #endif |
alindvall | 0:6bd24cbb88a1 | 52 |