MOでLチカします

Dependencies:   mbed

Committer:
osakah
Date:
Wed Jan 13 15:31:47 2016 +0000
Revision:
5:7a3e5c323cda
Parent:
4:06501f975281
??????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
osakah 4:06501f975281 1 #include "mbed.h"
osakah 4:06501f975281 2
osakah 4:06501f975281 3 DigitalOut myled(LED1);
osakah 4:06501f975281 4
osakah 4:06501f975281 5 int main() {
osakah 4:06501f975281 6 while(1) {
osakah 4:06501f975281 7 //M
osakah 4:06501f975281 8 myled = 1; // LED is ON
osakah 4:06501f975281 9 wait(0.3); // 300 ms
osakah 4:06501f975281 10 myled = 0; // LED is OFF
osakah 4:06501f975281 11 wait(0.1); // 100 ms
osakah 4:06501f975281 12 myled = 1;
osakah 4:06501f975281 13 wait(0.3);
osakah 4:06501f975281 14 myled = 0;
osakah 4:06501f975281 15 wait(0.1);
osakah 4:06501f975281 16
osakah 5:7a3e5c323cda 17 wait(0.3); // 300 ms
osakah 4:06501f975281 18
osakah 4:06501f975281 19 //O
osakah 4:06501f975281 20 myled = 1;
osakah 4:06501f975281 21 wait(0.3);
osakah 4:06501f975281 22 myled = 0;
osakah 4:06501f975281 23 wait(0.1);
osakah 4:06501f975281 24 myled = 1;
osakah 4:06501f975281 25 wait(0.3);
osakah 4:06501f975281 26 myled = 0;
osakah 4:06501f975281 27 wait(0.1);
osakah 4:06501f975281 28 myled = 1;
osakah 4:06501f975281 29 wait(0.3);
osakah 4:06501f975281 30 myled = 0;
osakah 4:06501f975281 31 wait(0.1);
osakah 4:06501f975281 32
osakah 4:06501f975281 33 wait(0.3);
osakah 4:06501f975281 34 }
osakah 4:06501f975281 35 }