![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Graphical demo for the LPC4088 Experiment Base Board with one of the Display Expansion Kits. This demo shows a rotating 3D cube with and without textures.
main.cpp@0:c828045bbe69, 2014-10-03 (annotated)
- Committer:
- embeddedartists
- Date:
- Fri Oct 03 12:48:37 2014 +0000
- Revision:
- 0:c828045bbe69
First version.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
embeddedartists | 0:c828045bbe69 | 1 | /****************************************************************************** |
embeddedartists | 0:c828045bbe69 | 2 | * Includes |
embeddedartists | 0:c828045bbe69 | 3 | *****************************************************************************/ |
embeddedartists | 0:c828045bbe69 | 4 | #include "mbed.h" |
embeddedartists | 0:c828045bbe69 | 5 | |
embeddedartists | 0:c828045bbe69 | 6 | #include "TestDisplay.h" |
embeddedartists | 0:c828045bbe69 | 7 | |
embeddedartists | 0:c828045bbe69 | 8 | /****************************************************************************** |
embeddedartists | 0:c828045bbe69 | 9 | * Typedefs and defines |
embeddedartists | 0:c828045bbe69 | 10 | *****************************************************************************/ |
embeddedartists | 0:c828045bbe69 | 11 | |
embeddedartists | 0:c828045bbe69 | 12 | |
embeddedartists | 0:c828045bbe69 | 13 | /****************************************************************************** |
embeddedartists | 0:c828045bbe69 | 14 | * Local variables |
embeddedartists | 0:c828045bbe69 | 15 | *****************************************************************************/ |
embeddedartists | 0:c828045bbe69 | 16 | |
embeddedartists | 0:c828045bbe69 | 17 | DigitalOut myled(LED1); |
embeddedartists | 0:c828045bbe69 | 18 | |
embeddedartists | 0:c828045bbe69 | 19 | /****************************************************************************** |
embeddedartists | 0:c828045bbe69 | 20 | * Local functions |
embeddedartists | 0:c828045bbe69 | 21 | *****************************************************************************/ |
embeddedartists | 0:c828045bbe69 | 22 | |
embeddedartists | 0:c828045bbe69 | 23 | /* |
embeddedartists | 0:c828045bbe69 | 24 | * Test program for the 4.3" and 5" displays. This test is supposed to run |
embeddedartists | 0:c828045bbe69 | 25 | * on a LPC4088QSB board on an LPC4088 Experiment Base Board. |
embeddedartists | 0:c828045bbe69 | 26 | */ |
embeddedartists | 0:c828045bbe69 | 27 | |
embeddedartists | 0:c828045bbe69 | 28 | |
embeddedartists | 0:c828045bbe69 | 29 | int main() { |
embeddedartists | 0:c828045bbe69 | 30 | printf("\n" |
embeddedartists | 0:c828045bbe69 | 31 | "---\n" |
embeddedartists | 0:c828045bbe69 | 32 | "Display Demo Program for 4.3 and 5 inch display on the LPC4088 Experiment Base Board\n" |
embeddedartists | 0:c828045bbe69 | 33 | "Build Date: " __DATE__ " at " __TIME__ "\n" |
embeddedartists | 0:c828045bbe69 | 34 | "\n"); |
embeddedartists | 0:c828045bbe69 | 35 | |
embeddedartists | 0:c828045bbe69 | 36 | //TestDisplay display(TestDisplay::TFT_4_3); |
embeddedartists | 0:c828045bbe69 | 37 | TestDisplay display(TestDisplay::TFT_5); |
embeddedartists | 0:c828045bbe69 | 38 | display.runTest(); |
embeddedartists | 0:c828045bbe69 | 39 | |
embeddedartists | 0:c828045bbe69 | 40 | while(1) { |
embeddedartists | 0:c828045bbe69 | 41 | myled = 1; |
embeddedartists | 0:c828045bbe69 | 42 | wait(0.2); |
embeddedartists | 0:c828045bbe69 | 43 | myled = 0; |
embeddedartists | 0:c828045bbe69 | 44 | wait(0.2); |
embeddedartists | 0:c828045bbe69 | 45 | } |
embeddedartists | 0:c828045bbe69 | 46 | } |