timer

Dependencies:   mbed TextLCD

main.cpp

Committer:
lucholo
Date:
2015-11-30
Revision:
1:9f81ea7031d7
Parent:
0:c56b9f122955
Child:
2:35b1a94fb6c7

File content as of revision 1:9f81ea7031d7:

#include "mbed.h"

Timer t;
TextLCD lcd(PTD3, PTA12, PTA4, PTA5, PTC8, PTC9, TextLCD::LCD16x2);

int main()
{
    do
    {
        t.start();
        lcd.locate(0,0);
        lcd.printf("%F", t.read());
        t.stop();
    } while(t.read()<60)
        
}