ACC TEAM / Mbed 2 deprecated ACCPROJECT

Dependencies:   mbed

Revision:
0:8bb6839e4133
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Mar 19 07:31:08 2020 +0000
@@ -0,0 +1,43 @@
+#include "mbed.h"
+#include "fonction.h"
+#include "fonction.c"
+
+DigitalOut myled(LED1);
+
+int main() {  
+    BSP_LCD_Init();
+    BSP_LCD_LayerDefaultInit(LTDC_ACTIVE_LAYER, LCD_FB_START_ADDRESS);
+    BSP_LCD_SelectLayer(LTDC_ACTIVE_LAYER);
+
+    while (1) {S
+        BSP_LCD_Clear(LCD_COLOR_BLACK);
+        BSP_LCD_SetFont(&LCD_DEFAULT_FONT);
+        BSP_LCD_SetBackColor(LCD_COLOR_WHITE);
+        BSP_LCD_SetTextColor(LCD_COLOR_DARKBLUE);
+
+        BSP_LCD_DisplayStringAt(0, 1, (uint8_t *)"Bienvenue sur notre projeeeeetttttt !!!", CENTER_MODE);
+        HAL_Delay(5000);
+
+        
+/*    while(1) {
+        myled = 1; // LED is ON
+        wait(0.2); // 200 ms
+        myled = 0; // LED is OFF
+        wait(1.0); // 1 sec
+    }*/
+    int posx=0;
+    int posy=0;
+    int* matx=NULL;
+    int* maty=NULL;
+    int rang=0;
+    while(1){
+        //L'acceleromètre doit donner accx et accy
+        int accx=0;
+        int accy=0;
+        sortiex(posx,accx);
+        sortiey(posy,accy);
+        wait(TMP);
+        rang=rang+1;
+        }
+    return 0;
+}
\ No newline at end of file