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