4

Dependencies:   IHM mbed

main.cpp

Committer:
saioun
Date:
2018-05-29
Revision:
0:ddbd9117876b

File content as of revision 0:ddbd9117876b:

#include "NBoard.h"

IHM ihm;

int main()
{
    UINT16 val = 172, AnNaiss = 1999; 
    float taille=1.74;
    
    ihm.LCD_gotoxy(0, 0);
    ihm.LCD_printf("sylvain aioun");
    wait(2);
    
    ihm.LCD_gotoxy(1, 0);
    ihm.LCD_printf("%4d = %03X", AnNaiss, AnNaiss);
    
    wait(3);
    ihm.LCD_clear();
    
    ihm.LCD_gotoxy(1, 0);
    ihm.LCD_printf("%3.2fm", taille);
    wait(2);
    ihm.LCD_clear();
    
    while(Bp2 == 1); //attente bloquante
    
    while(1)
    { 
    ihm.LCD_printf("val (d): %3d", val);
    wait(2);
    ihm.LCD_gotoxy(1, 0);
    ihm.LCD_printf("val (h): %02X", val);
    wait(2);
    ihm.LCD_clear();
    wait(2);
    }
}