RX node

Dependencies:   mbed

Committer:
bcostm
Date:
Thu Jul 06 08:24:43 2017 +0000
Revision:
1:6554c60faa06
Parent:
0:d5bd863b2036
Child:
3:106ec6e30558
Typos

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bcostm 0:d5bd863b2036 1 #include "mbed.h"
bcostm 0:d5bd863b2036 2
bcostm 1:6554c60faa06 3 DigitalOut led(LED1);
bcostm 0:d5bd863b2036 4
bcostm 0:d5bd863b2036 5 int main()
bcostm 0:d5bd863b2036 6 {
bcostm 0:d5bd863b2036 7 while(1) {
bcostm 1:6554c60faa06 8 led = 1; // LED is ON
bcostm 0:d5bd863b2036 9 wait(0.2); // 200 ms
bcostm 1:6554c60faa06 10 led = 0; // LED is OFF
bcostm 0:d5bd863b2036 11 wait(0.8); // 800 ms
bcostm 0:d5bd863b2036 12 }
bcostm 0:d5bd863b2036 13 }