A basic graphics package for the LPC4088 Display Module.
Dependents: lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI lpc4088_displaymodule_fs_aid ... more
Fork of DMBasicGUI by
SlideShow/AppSlideShow.h@5:f4de114c31c3, 2014-12-21 (annotated)
- Committer:
- embeddedartists
- Date:
- Sun Dec 21 13:53:07 2014 +0100
- Revision:
- 5:f4de114c31c3
- Child:
- 10:651861441108
- Added support for RAW images
- Added SlideShow + App for it
- Moved App-specific stuff out from the AppLauncher and into main
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
embeddedartists | 5:f4de114c31c3 | 1 | /* |
embeddedartists | 5:f4de114c31c3 | 2 | * Copyright 2014 Embedded Artists AB |
embeddedartists | 5:f4de114c31c3 | 3 | * |
embeddedartists | 5:f4de114c31c3 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
embeddedartists | 5:f4de114c31c3 | 5 | * you may not use this file except in compliance with the License. |
embeddedartists | 5:f4de114c31c3 | 6 | * You may obtain a copy of the License at |
embeddedartists | 5:f4de114c31c3 | 7 | * |
embeddedartists | 5:f4de114c31c3 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
embeddedartists | 5:f4de114c31c3 | 9 | * |
embeddedartists | 5:f4de114c31c3 | 10 | * Unless required by applicable law or agreed to in writing, software |
embeddedartists | 5:f4de114c31c3 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
embeddedartists | 5:f4de114c31c3 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
embeddedartists | 5:f4de114c31c3 | 13 | * See the License for the specific language governing permissions and |
embeddedartists | 5:f4de114c31c3 | 14 | * limitations under the License. |
embeddedartists | 5:f4de114c31c3 | 15 | */ |
embeddedartists | 5:f4de114c31c3 | 16 | |
embeddedartists | 5:f4de114c31c3 | 17 | #ifndef APP_SLIDESHOW_H |
embeddedartists | 5:f4de114c31c3 | 18 | #define APP_SLIDESHOW_H |
embeddedartists | 5:f4de114c31c3 | 19 | |
embeddedartists | 5:f4de114c31c3 | 20 | #include "App.h" |
embeddedartists | 5:f4de114c31c3 | 21 | #include "DMBoard.h" |
embeddedartists | 5:f4de114c31c3 | 22 | #include "SlideShow.h" |
embeddedartists | 5:f4de114c31c3 | 23 | #include "rtos.h" |
embeddedartists | 5:f4de114c31c3 | 24 | |
embeddedartists | 5:f4de114c31c3 | 25 | /** |
embeddedartists | 5:f4de114c31c3 | 26 | * An App example. Slideshow. |
embeddedartists | 5:f4de114c31c3 | 27 | * |
embeddedartists | 5:f4de114c31c3 | 28 | * The purpose of this example is to show how the SlideShow class can be used. |
embeddedartists | 5:f4de114c31c3 | 29 | */ |
embeddedartists | 5:f4de114c31c3 | 30 | class AppSlideShow : public App { |
embeddedartists | 5:f4de114c31c3 | 31 | public: |
embeddedartists | 5:f4de114c31c3 | 32 | |
embeddedartists | 5:f4de114c31c3 | 33 | AppSlideShow(); |
embeddedartists | 5:f4de114c31c3 | 34 | ~AppSlideShow(); |
embeddedartists | 5:f4de114c31c3 | 35 | |
embeddedartists | 5:f4de114c31c3 | 36 | virtual bool setup(); |
embeddedartists | 5:f4de114c31c3 | 37 | virtual void runToCompletion(); |
embeddedartists | 5:f4de114c31c3 | 38 | virtual bool teardown(); |
embeddedartists | 5:f4de114c31c3 | 39 | |
embeddedartists | 5:f4de114c31c3 | 40 | private: |
embeddedartists | 5:f4de114c31c3 | 41 | void* _fb; |
embeddedartists | 5:f4de114c31c3 | 42 | Display* _disp; |
embeddedartists | 5:f4de114c31c3 | 43 | SlideShow* _show; |
embeddedartists | 5:f4de114c31c3 | 44 | Renderer* _rend; |
embeddedartists | 5:f4de114c31c3 | 45 | Mutex _fileMutex; |
embeddedartists | 5:f4de114c31c3 | 46 | }; |
embeddedartists | 5:f4de114c31c3 | 47 | |
embeddedartists | 5:f4de114c31c3 | 48 | #endif |