Correction

Dependencies:   mbed LCD_DISCO_F746NG BSP_DISCO_F746NG

main.cpp

Committer:
jlpadiolleau
Date:
2017-10-02
Revision:
0:617db635305b
Child:
1:1ad205209b9c

File content as of revision 0:617db635305b:

#include "mbed.h"
#include "LCD_DISCO_F746NG.h"
#include "TS_DISCO_F746NG.h"
#include "SDFileSystem.h"
#include <stdio.h>

LCD_DISCO_F746NG lcd; // Instanciation du LCD
Serial pc(USBTX, USBRX); // tx, rx
//SDFileSystem sd("sd");

int main()
{  
    lcd.Clear(LCD_COLOR_GREEN);
    lcd.SetBackColor(LCD_COLOR_GREEN);
    lcd.SetTextColor(LCD_COLOR_RED);
    printf("Debut de la phase d'intialisation\n");
    lcd.DisplayStringAt(0, LINE(0), (uint8_t *)"VOTRE MISSION CONSISTE A    ", LEFT_MODE);
    lcd.DisplayStringAt(0, LINE(1), (uint8_t *)"PROUVER LA FABRICATION      ", LEFT_MODE);
    lcd.DisplayStringAt(0, LINE(2), (uint8_t *)"D’UNE ARME SECRETE          ", LEFT_MODE);
    lcd.DisplayStringAt(0, LINE(3), (uint8_t *)"REDOUTABLE DANS CE PAYS.    ", LEFT_MODE);
    lcd.DisplayStringAt(0, LINE(4), (uint8_t *)"ALLEZ DANS LES LABORATOIRES ", LEFT_MODE);
    lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"SECRETS DE LA CAPITALE      ", LEFT_MODE);
    lcd.DisplayStringAt(0, LINE(6), (uint8_t *)"ET FAITES DES PHOTOS QUE    ", LEFT_MODE);
    lcd.DisplayStringAt(0, LINE(7), (uint8_t *)"VOUS TRANMETTREZ A NOTRE    ", LEFT_MODE);
    lcd.DisplayStringAt(0, LINE(8), (uint8_t *)"AGENCE DANS LE PAYS VOISIN. ", LEFT_MODE);
    lcd.DisplayStringAt(0, LINE(9), (uint8_t *)"BONNE CHANCE AGENT 567",CENTER_MODE);
    printf("Fin de la phase d'intialisation\n");
    wait(10);
    lcd.Clear(LCD_COLOR_WHITE);
    //lcd.DrawBitmap(0,0,(uint8_t *)"/sd/koala.bmp");
    wait(5);
    lcd.Clear(LCD_COLOR_WHITE);
    while(1)
    {
        printf("Boucle sans fin\n");
        lcd.FillCircle(240,136,50);
        wait(0.2);
        lcd.Clear(LCD_COLOR_WHITE);
        wait(0.2);
    }
}