Exemplo 01 para o SGAM 1. Exemplo com o WHILE 2. Exemplo usando MBED EVENTS

Dependencies:   mbed

Committer:
AndersonIctus
Date:
Sun May 19 15:03:38 2019 +0000
Revision:
0:b38fbba9d274
initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AndersonIctus 0:b38fbba9d274 1 #include "mbed.h"
AndersonIctus 0:b38fbba9d274 2
AndersonIctus 0:b38fbba9d274 3 // DigitalOut myled(LED1);
AndersonIctus 0:b38fbba9d274 4
AndersonIctus 0:b38fbba9d274 5 int main() {
AndersonIctus 0:b38fbba9d274 6 // while(1) {
AndersonIctus 0:b38fbba9d274 7 // myled = 1; // LED is ON
AndersonIctus 0:b38fbba9d274 8 // wait(0.2); // 200 ms
AndersonIctus 0:b38fbba9d274 9 // myled = 0; // LED is OFF
AndersonIctus 0:b38fbba9d274 10 // wait(1.0); // 1 sec
AndersonIctus 0:b38fbba9d274 11 // }
AndersonIctus 0:b38fbba9d274 12
AndersonIctus 0:b38fbba9d274 13 return 0;
AndersonIctus 0:b38fbba9d274 14 }