Programa para testes

Dependencies:   mbed

Committer:
mlucas82
Date:
Tue Mar 03 07:47:30 2015 +0000
Revision:
7:0251200bc0af
Parent:
5:276a28abdd96
Child:
8:73a7f68c7ad9
fixed #1

Who changed what in which revision?

UserRevisionLine numberNew 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 7:0251200bc0af 5
mlucas82 1:8c81337d6d2e 6 void pisca()
mlucas82 1:8c81337d6d2e 7 {
mlucas82 1:8c81337d6d2e 8 myled = 1;
Marcos A. Lucas 5:276a28abdd96 9 wait(0.5);
mlucas82 1:8c81337d6d2e 10 myled = 1;
mlucas82 1:8c81337d6d2e 11 }
mlucas82 1:8c81337d6d2e 12
mlucas82 0:a6f65085b80e 13 int main() {
mlucas82 0:a6f65085b80e 14 while(1) {
mlucas82 1:8c81337d6d2e 15 pisca();
lucas_dataware 2:0d59d31e4ffb 16 wait(0.3);
mlucas82 0:a6f65085b80e 17 }
mlucas82 0:a6f65085b80e 18 }