use VS1033(MP3 decoder) and UL024TF(TFTLCD)

Dependencies:   FastIO SDFileSystem TFTLCDwithFastIO TouchPanel VS1033 mbed

Fork of 11U68_MP3Player with TFTLCD by en 129

Committer:
nameless129
Date:
Sun Jul 12 03:17:06 2015 +0000
Revision:
0:5f0e931ae677
Child:
2:0090839c8276
first commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nameless129 0:5f0e931ae677 1 // include the library, this will also pull in the header for the provided fonts
nameless129 0:5f0e931ae677 2 #include "ili9328.h"
nameless129 0:5f0e931ae677 3
nameless129 0:5f0e931ae677 4 // prepare the data bus for writing commands and pixel data
nameless129 0:5f0e931ae677 5 BusOut dataBus( P1_28,P2_3,P1_18,P1_24,P1_19,P1_26,P1_27,P1_25 ); // 16 pins
nameless129 0:5f0e931ae677 6 // create the lcd instance
nameless129 0:5f0e931ae677 7 //(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)
nameless129 0:5f0e931ae677 8 ILI9328_LCD lcd( P0_12, P0_11, P0_13, P0_14, &dataBus, NC, P1_9 ); // control pins and data bus
nameless129 0:5f0e931ae677 9
nameless129 0:5f0e931ae677 10 int main()
nameless129 0:5f0e931ae677 11 {
nameless129 0:5f0e931ae677 12 // initialize display - place it in standard portrait mode and set background to black and
nameless129 0:5f0e931ae677 13 // foreground to white color.
nameless129 0:5f0e931ae677 14 lcd.Initialize(LANDSCAPE,RGB16);
nameless129 0:5f0e931ae677 15 // set current font to the smallest 8x12 pixels font.
nameless129 0:5f0e931ae677 16 lcd.SetBackground(COLOR_BLUE);
nameless129 0:5f0e931ae677 17 lcd.FillScreen(-1);
nameless129 0:5f0e931ae677 18 lcd.SetFont( &TerminusFont );
nameless129 0:5f0e931ae677 19 lcd.Print( "STOP:XXXXXXXX", CENTER, 25 ); // align text to center horizontally and use starndard colors
nameless129 0:5f0e931ae677 20
nameless129 0:5f0e931ae677 21 while ( 1 )
nameless129 0:5f0e931ae677 22 {
nameless129 0:5f0e931ae677 23
nameless129 0:5f0e931ae677 24 }
nameless129 0:5f0e931ae677 25 }