use VS1033(MP3 decoder) and UL024TF(TFTLCD)
Dependencies: FastIO SDFileSystem TFTLCDwithFastIO TouchPanel VS1033 mbed
Fork of 11U68_MP3Player with TFTLCD by
main.cpp
- Committer:
- nameless129
- Date:
- 2015-07-12
- Revision:
- 0:5f0e931ae677
- Child:
- 2:0090839c8276
File content as of revision 0:5f0e931ae677:
// 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 ) { } }