subhash kummara / Mbed 2 deprecated led_blink

Dependencies:   mbed

Committer:
subhashkummara
Date:
Mon Nov 09 04:10:05 2020 +0000
Revision:
0:b611fcb4447c
Child:
1:cac8ab1bb9a8
added led 2

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 0:b611fcb4447c 10 wait(0.2);
subhashkummara 0:b611fcb4447c 11 myled1 = 0;
subhashkummara 0:b611fcb4447c 12 myled2 = 0;
subhashkummara 0:b611fcb4447c 13 wait(0.2);
subhashkummara 0:b611fcb4447c 14 }
subhashkummara 0:b611fcb4447c 15 }