Eduardo Pellini / Mbed 2 deprecated MeuProgramaQueridoPiscaPisca

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 DigitalOut Saida1(LED1);
00004 DigitalOut Saida2(LED2);
00005 DigitalOut Saida3(LED3);
00006 
00007 int main() 
00008 {
00009     while(1) 
00010     {
00011         Saida1 = 1;
00012         wait(0.5);
00013         Saida1 = 0;
00014         wait(0.1);
00015 
00016         Saida2 = 1;
00017         wait(0.5);
00018         Saida2 = 0;
00019         wait(0.1);
00020 
00021         Saida3 = 1;
00022         wait(0.5);
00023         Saida3 = 0;
00024         wait(0.1);
00025     }
00026 }