Programme for Test ConnectEve from Mikroe Its Ok
Dependencies: mbed FT800okForConnectEvewithLuminosite
Diff: main.cpp
- Revision:
- 3:303f91161be0
- Parent:
- 1:a7076a14694b
--- a/main.cpp Sat Sep 20 15:38:23 2014 +0000 +++ b/main.cpp Mon Mar 11 19:14:29 2019 +0000 @@ -5,8 +5,7 @@ #include "mbed.h" #include "FT_Platform.h" - -FT800 TFT(PA_7,PA_6,PA_5,PC_7,PB_4,PA_9); // mosi, miso, sck, ss, int, pd // the FT800 is connected to SPI 11-13 +FT800 TFT(p5,p6,p7,p10,p8,p9); // mosi, miso, sck, ss, int, pd // the FT800 is connected to SPI 11-13 /***************************************************************************/ /* Show a Screen with Text for 5 seconds */ @@ -19,7 +18,7 @@ TFT.DL(CLEAR_COLOR_RGB(255,255,255)); // set the clear color to white TFT.DL(CLEAR(1,1,1)); // clear buffers -> color buffer,stencil buffer, tag buffer TFT.DL(COLOR_RGB(0x80,0x80,0x00)); // set current color - TFT.Text((TFT.DispWidth/2), TFT.DispHeight/2, 31, OPT_CENTERX, str); // draw Text with font 31 + TFT.Text((TFT.DispWidth/2), TFT.DispHeight/2, 20, OPT_CENTERX, str); // draw Text with font 31 TFT.DL(COLOR_RGB(0xFF,0x00,0x00)); // change current color TFT.Spinner((TFT.DispWidth/2),TFT.DispHeight/4, 0,0); // draw a animated spinner @@ -67,9 +66,10 @@ unsigned int r = 0,g = 0,b = 0; ft_uint32_t TrackRegisterVal = 0; // touch track - Start_Screen("RGB DEMO START"); // Show start screen + Start_Screen("RGB DEMO For EVECONNECT"); // Show start screen TFT.Calibrate(); // calibrate the touch screen - + TFT. luminosite( 128) ; + /* Set the tracker for the 3 sliders - define the Area for touching */ TFT.Track(131,63,330,48,1); // slider r TFT.Track(131,116,333,48,2); // slider g