![](/media/cache/profiles/7ed334513e65f01deefba9e87e53ea94.jpg.50x50_q85.jpg)
Programa para testes
Diff: main.cpp
- Revision:
- 1:8c81337d6d2e
- Parent:
- 0:a6f65085b80e
- Child:
- 3:5aa59a6b4243
--- a/main.cpp Tue Mar 03 06:07:49 2015 +0000 +++ b/main.cpp Tue Mar 03 06:15:36 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.2); } }