![](/media/cache/profiles/7ed334513e65f01deefba9e87e53ea94.jpg.50x50_q85.jpg)
Programa para testes
Diff: main.cpp
- Revision:
- 3:5aa59a6b4243
- Parent:
- 2:0d59d31e4ffb
- Parent:
- 1:8c81337d6d2e
- Child:
- 4:31e269dec5cb
diff -r 0d59d31e4ffb -r 5aa59a6b4243 main.cpp --- a/main.cpp Tue Mar 03 06:16:06 2015 +0000 +++ b/main.cpp Tue Mar 03 06:19:41 2015 +0000 @@ -2,11 +2,16 @@ DigitalOut myled(LED1); +void pisca() +{ + myled = 1; + wait(0.2); + myled = 1; +} + int main() { while(1) { - myled = 1; - wait(0.2); - myled = 0; + pisca(); wait(0.3); } }