The example program for mbed pin-compatible platforms

Dependencies:   mbed

Fork of mbed_blinky by Mbed

Committer:
naohiro2g
Date:
Tue Nov 26 13:23:19 2013 +0000
Revision:
1:3f64e98efa48
Parent:
0:7dec7e9ac085
test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dan 0:7dec7e9ac085 1 #include "mbed.h"
dan 0:7dec7e9ac085 2
dan 0:7dec7e9ac085 3 DigitalOut myled(LED1);
dan 0:7dec7e9ac085 4
dan 0:7dec7e9ac085 5 int main() {
dan 0:7dec7e9ac085 6 while(1) {
dan 0:7dec7e9ac085 7 myled = 1;
naohiro2g 1:3f64e98efa48 8 wait(0.5);
dan 0:7dec7e9ac085 9 myled = 0;
naohiro2g 1:3f64e98efa48 10 wait(0.1);
naohiro2g 1:3f64e98efa48 11 myled = 1;
naohiro2g 1:3f64e98efa48 12 wait(0.1);
naohiro2g 1:3f64e98efa48 13 myled = 0;
naohiro2g 1:3f64e98efa48 14 wait(0.1);
dan 0:7dec7e9ac085 15 }
naohiro2g 1:3f64e98efa48 16 }