Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
main.cpp
- Committer:
- eitanallal
- Date:
- 2020-03-19
- Revision:
- 0:8bb6839e4133
File content as of revision 0:8bb6839e4133:
#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;
}