Graphical demo for the LPC4088 Experiment Base Board with one of the Display Expansion Kits. This program displays how to write text in different fonts.

Dependencies:   EALib mbed

Committer:
embeddedartists
Date:
Thu Jun 25 10:30:15 2015 +0000
Revision:
0:5e5e9ec91fc8
First version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
embeddedartists 0:5e5e9ec91fc8 1 /******************************************************************************
embeddedartists 0:5e5e9ec91fc8 2 * Includes
embeddedartists 0:5e5e9ec91fc8 3 *****************************************************************************/
embeddedartists 0:5e5e9ec91fc8 4 #include "mbed.h"
embeddedartists 0:5e5e9ec91fc8 5
embeddedartists 0:5e5e9ec91fc8 6 #include "TestDisplay.h"
embeddedartists 0:5e5e9ec91fc8 7
embeddedartists 0:5e5e9ec91fc8 8 /******************************************************************************
embeddedartists 0:5e5e9ec91fc8 9 * Typedefs and defines
embeddedartists 0:5e5e9ec91fc8 10 *****************************************************************************/
embeddedartists 0:5e5e9ec91fc8 11
embeddedartists 0:5e5e9ec91fc8 12
embeddedartists 0:5e5e9ec91fc8 13 /******************************************************************************
embeddedartists 0:5e5e9ec91fc8 14 * Local variables
embeddedartists 0:5e5e9ec91fc8 15 *****************************************************************************/
embeddedartists 0:5e5e9ec91fc8 16
embeddedartists 0:5e5e9ec91fc8 17 DigitalOut myled(LED1);
embeddedartists 0:5e5e9ec91fc8 18
embeddedartists 0:5e5e9ec91fc8 19 /******************************************************************************
embeddedartists 0:5e5e9ec91fc8 20 * Local functions
embeddedartists 0:5e5e9ec91fc8 21 *****************************************************************************/
embeddedartists 0:5e5e9ec91fc8 22
embeddedartists 0:5e5e9ec91fc8 23 /*
embeddedartists 0:5e5e9ec91fc8 24 * Test program for the 4.3" and 5" displays. This test is supposed to run
embeddedartists 0:5e5e9ec91fc8 25 * on a LPC4088QSB board on an LPC4088 Experiment Base Board.
embeddedartists 0:5e5e9ec91fc8 26 */
embeddedartists 0:5e5e9ec91fc8 27
embeddedartists 0:5e5e9ec91fc8 28
embeddedartists 0:5e5e9ec91fc8 29 int main() {
embeddedartists 0:5e5e9ec91fc8 30 printf("\n"
embeddedartists 0:5e5e9ec91fc8 31 "---\n"
embeddedartists 0:5e5e9ec91fc8 32 "Text Demo Program for 4.3 and 5 inch display on the LPC4088 Experiment Base Board\n"
embeddedartists 0:5e5e9ec91fc8 33 "Build Date: " __DATE__ " at " __TIME__ "\n"
embeddedartists 0:5e5e9ec91fc8 34 "\n");
embeddedartists 0:5e5e9ec91fc8 35
embeddedartists 0:5e5e9ec91fc8 36 //TestDisplay display(TestDisplay::TFT_4_3);
embeddedartists 0:5e5e9ec91fc8 37 TestDisplay display(TestDisplay::TFT_5);
embeddedartists 0:5e5e9ec91fc8 38 display.runTest();
embeddedartists 0:5e5e9ec91fc8 39
embeddedartists 0:5e5e9ec91fc8 40 while(1) {
embeddedartists 0:5e5e9ec91fc8 41 myled = 1;
embeddedartists 0:5e5e9ec91fc8 42 wait(0.2);
embeddedartists 0:5e5e9ec91fc8 43 myled = 0;
embeddedartists 0:5e5e9ec91fc8 44 wait(0.2);
embeddedartists 0:5e5e9ec91fc8 45 }
embeddedartists 0:5e5e9ec91fc8 46 }