Curtis Mattull
/
PANEL_GUI_hello_world
basic functional test of FT810 LCD via SPI
Diff: main.cpp
- Revision:
- 6:f698d8ba4cd6
- Parent:
- 5:e2e04cb5eada
- Child:
- 7:e525bfa17136
--- a/main.cpp Wed Mar 30 14:52:16 2016 +0000 +++ b/main.cpp Wed Mar 30 15:07:54 2016 +0000 @@ -2,15 +2,15 @@ Title Block ** Project : CLC Brew Panel -** Processor : MK20 +** Processor : MK20 ** Version : 1.0 ** Compiler : mbed ** Date/Time : 3/27/2016 ** Abstract : ? -** ** ** -** Todo : +** +** Todo : @@ -31,6 +31,7 @@ //#define Nucleo_F303K8 #define K20 +#define Program_Button #ifdef Nucleo_F303K8 FT800 TFT(PB_5,PB_4,PB_3,PA_11,PA_8,PF_1); // the FT800 is connected to SPI 5-7, then we have CS, INT, PD @@ -245,6 +246,12 @@ TFT.DL(TAG(2)); // assign TAG value 2 TFT.Slider(450,375,280,30,0,ITVpressure2_user_input,2387); /***************************************************************************************************/ +// add button to make for easy reprogramming +#ifdef Program_Button + TFT.DL(TAG(200)); // assign TAG value 200 + TFT.Button(720, 1, 76, 22, 26, 0, "Reprogram"); +#endif + // Debug the touch up load #ifdef Debug_Touch_File @@ -361,6 +368,8 @@ ITVpressure2_user_input = (TrackRegisterVal>>20) * (2386.0/4095); ITVpressure2_input_raw = (TrackRegisterVal>>20) * (2386.0/4095) + 585; //dac2.write_u12(ITVpressure2_input_raw); + } else if (200 == tagval) { + break; } }