proyectotecnicas
/
frdm_timer
timer
main.cpp@1:9f81ea7031d7, 2015-11-30 (annotated)
- Committer:
- lucholo
- Date:
- Mon Nov 30 18:46:51 2015 +0000
- Revision:
- 1:9f81ea7031d7
- Parent:
- 0:c56b9f122955
- Child:
- 2:35b1a94fb6c7
TIMER DE 1 MINUTO
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Diegolorca | 0:c56b9f122955 | 1 | #include "mbed.h" |
Diegolorca | 0:c56b9f122955 | 2 | |
Diegolorca | 0:c56b9f122955 | 3 | Timer t; |
lucholo | 1:9f81ea7031d7 | 4 | TextLCD lcd(PTD3, PTA12, PTA4, PTA5, PTC8, PTC9, TextLCD::LCD16x2); |
Diegolorca | 0:c56b9f122955 | 5 | |
Diegolorca | 0:c56b9f122955 | 6 | int main() |
Diegolorca | 0:c56b9f122955 | 7 | { |
lucholo | 1:9f81ea7031d7 | 8 | do |
lucholo | 1:9f81ea7031d7 | 9 | { |
lucholo | 1:9f81ea7031d7 | 10 | t.start(); |
lucholo | 1:9f81ea7031d7 | 11 | lcd.locate(0,0); |
lucholo | 1:9f81ea7031d7 | 12 | lcd.printf("%F", t.read()); |
lucholo | 1:9f81ea7031d7 | 13 | t.stop(); |
lucholo | 1:9f81ea7031d7 | 14 | } while(t.read()<60) |
lucholo | 1:9f81ea7031d7 | 15 | |
Diegolorca | 0:c56b9f122955 | 16 | } |