1

Dependencies:   IHM_V2 mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "IHM.h"
00003 
00004 IHM ihm;
00005 
00006 Timer timer;
00007 
00008 void fct_a_mesurer(void)
00009 {
00010     ihm.LCD_gotoxy(0, 0);
00011     ihm.LCD_clear();
00012     ihm.LCD_printf("test");
00013 }
00014 
00015 int main()
00016 {
00017     float time;
00018     timer.start();
00019     fct_a_mesurer();
00020     timer.stop();
00021     time = timer.read();
00022     ihm.LCD_clear();
00023     ihm.LCD_gotoxy(1, 0);
00024     ihm.LCD_printf("%6.5f", time);       
00025 }