TOUCHSCREEN basic example for DISCO_F769NI

Dependencies:   BSP_DISCO_F769NI

Files at this revision

API Documentation at this revision

Comitter:
Jerome Coutant
Date:
Fri Nov 15 15:10:07 2019 +0100
Parent:
1:d4af4f532ecc
Commit message:
Update with STM32Cube_FW_F7_V1.15.0

Changed in this revision

.hgignore Show annotated file Show diff for this revision Revisions of this file
BSP_DISCO_F769NI.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore	Fri Nov 15 15:10:07 2019 +0100
@@ -0,0 +1,2 @@
+BUILD
+mbed-os/
--- a/BSP_DISCO_F769NI.lib	Wed Jun 07 11:47:45 2017 +0000
+++ b/BSP_DISCO_F769NI.lib	Fri Nov 15 15:10:07 2019 +0100
@@ -1,1 +1,1 @@
-https://mbed.org/teams/ST/code/BSP_DISCO_F769NI/#39d2c2c79afa
+https://mbed.org/teams/ST/code/BSP_DISCO_F769NI/#d13d7c447539
--- a/main.cpp	Wed Jun 07 11:47:45 2017 +0000
+++ b/main.cpp	Fri Nov 15 15:10:07 2019 +0100
@@ -13,6 +13,7 @@
 
     BSP_LCD_Init();
     BSP_LCD_LayerDefaultInit(0, LCD_FB_START_ADDRESS);
+    BSP_LCD_SelectLayer(0);
 
     /* Touchscreen initialization */
     if (BSP_TS_Init(BSP_LCD_GetXSize(), BSP_LCD_GetYSize()) == TS_ERROR) {
@@ -32,7 +33,7 @@
 
     while (1) {
         BSP_TS_GetState(&TS_State);
-        if(TS_State.touchDetected) {
+        if (TS_State.touchDetected) {
             /* One or dual touch have been detected          */
 
             /* Get X and Y position of the first touch post calibrated */
@@ -43,7 +44,7 @@
             BSP_LCD_SetTextColor(LCD_COLOR_BLUE);
             BSP_LCD_FillCircle(x1, y1, 20);
 
-            wait_ms(10);
+            HAL_Delay(100);
         }
     }
 }
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Fri Nov 15 15:10:07 2019 +0100
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/mbed-os/#699372421a3b388fe568e9be85b1a985749a438f
--- a/mbed.bld	Wed Jun 07 11:47:45 2017 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://mbed.org/users/mbed_official/code/mbed/builds/86740a56073b
\ No newline at end of file