subhash kummara / Mbed 2 deprecated led_blink

Dependencies:   mbed

Committer:
subhashkummara
Date:
Mon Nov 09 04:12:26 2020 +0000
Revision:
1:cac8ab1bb9a8
Parent:
0:b611fcb4447c
Child:
2:ecc77165d638
slowdown blink rate

Who changed what in which revision?

UserRevisionLine numberNew contents of line
subhashkummara 0:b611fcb4447c 1 #include "mbed.h"
subhashkummara 0:b611fcb4447c 2
subhashkummara 0:b611fcb4447c 3 DigitalOut myled1(LED1);
subhashkummara 0:b611fcb4447c 4
subhashkummara 0:b611fcb4447c 5 DigitalOut myled2(LED2);
subhashkummara 0:b611fcb4447c 6 int main() {
subhashkummara 0:b611fcb4447c 7 while(1) {
subhashkummara 0:b611fcb4447c 8 myled1 = 1;
subhashkummara 0:b611fcb4447c 9 myled2 = 1;
subhashkummara 1:cac8ab1bb9a8 10 wait(0.5);
subhashkummara 0:b611fcb4447c 11 myled1 = 0;
subhashkummara 0:b611fcb4447c 12 myled2 = 0;
subhashkummara 1:cac8ab1bb9a8 13 wait(0.5);
subhashkummara 0:b611fcb4447c 14 }
subhashkummara 0:b611fcb4447c 15 }