ce program est un test non fini

Dependencies:   mbed BSP_DISCO_F746NG

Revision:
2:3e54ffabcc47
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Nov 18 08:07:27 2020 +0000
@@ -0,0 +1,37 @@
+#include "mbed.h"
+#include "stm32746g_discovery_lcd.h"
+#include "stm32746g_discovery_ts.h"
+
+
+#include "header.h"
+
+int main(){
+  uint8_t status;   
+  
+  BSP_LCD_Init();
+  BSP_LCD_LayerDefaultInit(LTDC_ACTIVE_LAYER, LCD_FB_START_ADDRESS);
+  BSP_LCD_SelectLayer(LTDC_ACTIVE_LAYER);
+  status = BSP_TS_Init(BSP_LCD_GetXSize(), BSP_LCD_GetYSize());
+    if (status != TS_OK) {
+        BSP_LCD_Clear(LCD_COLOR_RED);
+        BSP_LCD_SetBackColor(LCD_COLOR_RED);
+        BSP_LCD_SetTextColor(LCD_COLOR_WHITE);
+        BSP_LCD_DisplayStringAt(0, LINE(5), (uint8_t *)"TOUCHSCREEN INIT FAIL", CENTER_MODE);
+    } 
+    else {
+        BSP_LCD_Clear(LCD_COLOR_BLACK);
+        BSP_LCD_SetBackColor(LCD_COLOR_BLACK);
+        int rejouer=0;
+        GRILLE G={0};
+        GRILLE Gsomme={0};
+        init_cellules(G);
+        partie(G,Gsomme);
+        rejouer = fin_de_partie(G,Gsomme);
+        if (rejouer==1){
+            main();
+            }
+    }
+  return 0;    
+}
+
+