![](/media/cache/profiles/7ed334513e65f01deefba9e87e53ea94.jpg.50x50_q85.jpg)
Programa para testes
main.cpp@12:4a00176dbc8a, 2015-03-03 (annotated)
- Committer:
- Marcos A. Lucas
- Date:
- Tue Mar 03 05:16:44 2015 -0300
- Revision:
- 12:4a00176dbc8a
- Parent:
- 10:e4731e0ce796
- Parent:
- 9:b1cf03aefec1
- Child:
- 15:544ab0319bc6
Merged
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mlucas82 | 0:a6f65085b80e | 1 | #include "mbed.h" |
mlucas82 | 0:a6f65085b80e | 2 | |
mlucas82 | 0:a6f65085b80e | 3 | DigitalOut myled(LED1); |
mlucas82 | 0:a6f65085b80e | 4 | |
Marcos A. Lucas |
10:e4731e0ce796 | 5 | |
Marcos A. Lucas |
10:e4731e0ce796 | 6 | |
mlucas82 | 1:8c81337d6d2e | 7 | void pisca() |
mlucas82 | 1:8c81337d6d2e | 8 | { |
mlucas82 | 1:8c81337d6d2e | 9 | myled = 1; |
Marcos A. Lucas |
5:276a28abdd96 | 10 | wait(0.5); |
mlucas82 | 1:8c81337d6d2e | 11 | myled = 1; |
mlucas82 | 1:8c81337d6d2e | 12 | } |
mlucas82 | 1:8c81337d6d2e | 13 | |
mlucas82 | 0:a6f65085b80e | 14 | int main() { |
mlucas82 | 0:a6f65085b80e | 15 | while(1) { |
mlucas82 | 1:8c81337d6d2e | 16 | pisca(); |
lucas_dataware | 2:0d59d31e4ffb | 17 | wait(0.3); |
mlucas82 | 0:a6f65085b80e | 18 | } |
mlucas82 | 0:a6f65085b80e | 19 | } |