EzSBC2_blink_program

Dependencies:   mbed

Committer:
kizosgr
Date:
Sun Apr 12 23:25:38 2015 +0000
Revision:
1:d4ef93a264b7
Parent:
0:b08cd12df913
EzSBC2 blink at 2 LEDs P1_15 and P1_22

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kizosgr 0:b08cd12df913 1 #include "mbed.h"
kizosgr 0:b08cd12df913 2
kizosgr 1:d4ef93a264b7 3 // EzSBC2 has 2 LEDs P1_15 and P1_16
kizosgr 1:d4ef93a264b7 4
kizosgr 1:d4ef93a264b7 5 DigitalOut Led1(P1_15);
kizosgr 0:b08cd12df913 6
kizosgr 0:b08cd12df913 7 DigitalOut Led2(P1_16);
kizosgr 0:b08cd12df913 8
kizosgr 0:b08cd12df913 9 int main()
kizosgr 0:b08cd12df913 10 {
kizosgr 0:b08cd12df913 11 while(1)
kizosgr 0:b08cd12df913 12 {
kizosgr 0:b08cd12df913 13 Led2 = !Led2;
kizosgr 0:b08cd12df913 14 wait_ms(250);
kizosgr 1:d4ef93a264b7 15 Led1 = !Led1;
kizosgr 0:b08cd12df913 16 wait_ms(250);
kizosgr 0:b08cd12df913 17 }
kizosgr 0:b08cd12df913 18 }