![](/media/cache/profiles/94bd3f4d79c60af8831740e58a68dd6e.jpg.50x50_q85.jpg)
use VS1033(MP3 decoder) and UL024TF(TFTLCD)
Dependencies: TFTLCDwithFastIO FastIO SDFileSystem TouchPanel VS1033 mbed
Diff: main.cpp
- Revision:
- 0:5f0e931ae677
- Child:
- 2:0090839c8276
diff -r 000000000000 -r 5f0e931ae677 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Jul 12 03:17:06 2015 +0000 @@ -0,0 +1,25 @@ +// include the library, this will also pull in the header for the provided fonts +#include "ili9328.h" + +// prepare the data bus for writing commands and pixel data +BusOut dataBus( P1_28,P2_3,P1_18,P1_24,P1_19,P1_26,P1_27,P1_25 ); // 16 pins +// create the lcd instance +//(PinName CS, PinName RESET, PinName RS, PinName WR, BusOut *DATA_PORT, PinName BL=NC, PinName RD=NC, backlight_t blType=Constant, float defaultBackLightLevel=1.0) +ILI9328_LCD lcd( P0_12, P0_11, P0_13, P0_14, &dataBus, NC, P1_9 ); // control pins and data bus + +int main() +{ + // initialize display - place it in standard portrait mode and set background to black and + // foreground to white color. + lcd.Initialize(LANDSCAPE,RGB16); + // set current font to the smallest 8x12 pixels font. + lcd.SetBackground(COLOR_BLUE); + lcd.FillScreen(-1); + lcd.SetFont( &TerminusFont ); + lcd.Print( "STOP:XXXXXXXX", CENTER, 25 ); // align text to center horizontally and use starndard colors + + while ( 1 ) + { + + } +}