LED-P23 LED2-P24

Dependencies:   mbed

Committer:
rajivwagle
Date:
Thu Mar 08 12:20:30 2018 +0000
Revision:
0:a18f226926af
LEDS-P23,P24

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rajivwagle 0:a18f226926af 1 #include "mbed.h"
rajivwagle 0:a18f226926af 2
rajivwagle 0:a18f226926af 3 DigitalOut myled1(p23);
rajivwagle 0:a18f226926af 4 DigitalOut myled2(p24);
rajivwagle 0:a18f226926af 5
rajivwagle 0:a18f226926af 6 int main() {
rajivwagle 0:a18f226926af 7
rajivwagle 0:a18f226926af 8 while(1) {
rajivwagle 0:a18f226926af 9
rajivwagle 0:a18f226926af 10 myled1 = 1;
rajivwagle 0:a18f226926af 11 wait(0.1);
rajivwagle 0:a18f226926af 12 myled1 = 0;
rajivwagle 0:a18f226926af 13 wait(0.1);
rajivwagle 0:a18f226926af 14
rajivwagle 0:a18f226926af 15 myled2 = 1;
rajivwagle 0:a18f226926af 16 wait(0.1);
rajivwagle 0:a18f226926af 17 myled2 = 0;
rajivwagle 0:a18f226926af 18 wait(0.1);
rajivwagle 0:a18f226926af 19
rajivwagle 0:a18f226926af 20
rajivwagle 0:a18f226926af 21 }
rajivwagle 0:a18f226926af 22 }