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