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