Marcos Lucas
/
blinksos
Programa para testes
main.cpp@14:e3794e644d5b, 2015-03-03 (annotated)
- Committer:
- Marcos A. Lucas
- Date:
- Tue Mar 03 05:20:12 2015 -0300
- Branch:
- maisum
- Revision:
- 14:e3794e644d5b
- Parent:
- 13:d9fd93652394
- Child:
- 15:544ab0319bc6
- Child:
- 16:57ff2c994f4f
teste 2
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 | |
mlucas82 | 1:8c81337d6d2e | 5 | void pisca() |
mlucas82 | 1:8c81337d6d2e | 6 | { |
mlucas82 | 1:8c81337d6d2e | 7 | myled = 1; |
Marcos A. Lucas |
5:276a28abdd96 | 8 | wait(0.5); |
mlucas82 | 1:8c81337d6d2e | 9 | myled = 1; |
mlucas82 | 1:8c81337d6d2e | 10 | } |
mlucas82 | 1:8c81337d6d2e | 11 | |
mlucas82 | 0:a6f65085b80e | 12 | int main() { |
mlucas82 | 0:a6f65085b80e | 13 | while(1) { |
mlucas82 | 1:8c81337d6d2e | 14 | pisca(); |
lucas_dataware | 2:0d59d31e4ffb | 15 | wait(0.3); |
mlucas82 | 0:a6f65085b80e | 16 | } |
mlucas82 | 0:a6f65085b80e | 17 | } |
Marcos A. Lucas |
14:e3794e644d5b | 18 |