timer

Dependencies:   mbed TextLCD

main.cpp

Committer:
josedaparte
Date:
2015-11-30
Revision:
2:35b1a94fb6c7
Parent:
1:9f81ea7031d7
Child:
3:a3c969ad9f9a

File content as of revision 2:35b1a94fb6c7:

#include "mbed.h"
#include "TextLCD.h"

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

int main()
{
    lcd.cls();
    do
    {
        t.start();
        lcd.locate(0,0);
        lcd.printf("%F", t.read());
        //t.stop();
    } while(t.read() <= 5);
        lcd.printf("tiempo");
}