Example of using library LCDTFT

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "LCDTFT.h"
00003 
00004 BusOut  MyBus(p13,p14,p15,p16,p17,p18,p19,p20,p30,p29,p28,p27,p26,p25,p24,p23);
00005 LCDTFT  MyLCD(p5,p6,p7,p22,p21,&MyBus);
00006 
00007 int main(){
00008     MyLCD.vLCDTFTInit();
00009     MyLCD.vLCDTFTFillScreen(ColorWhite);
00010     MyLCD.vLCDTFTSetParametersPrintf(10,20,10,229,2,0x0000);
00011     MyLCD.printf("Hola mbed!!!");
00012     wait_ms(2000);
00013     MyLCD.vLCDTFTRectangle(0,0,239,319,1,0x0000);
00014     MyLCD.vLCDTFTCircle(120,160,110,0,0xFFFF);
00015     MyLCD.vDrawImageBMP24Bits("IMG0.BMP");
00016 
00017     while(1){  
00018     }
00019 }