Initial reset

Dependencies:   mbed

Fork of Nucleo_blink_led by hiro yago

Committer:
MACRUM
Date:
Tue Jun 03 02:09:45 2014 +0000
Revision:
1:29a5b5945046
Parent:
0:50021795f51c
Modified

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hirokazu_yago 0:50021795f51c 1 #include "mbed.h"
hirokazu_yago 0:50021795f51c 2
hirokazu_yago 0:50021795f51c 3 PwmOut myled(LED1);
hirokazu_yago 0:50021795f51c 4
hirokazu_yago 0:50021795f51c 5 int main() {
hirokazu_yago 0:50021795f51c 6 while(1) {
MACRUM 1:29a5b5945046 7 myled = 0.5; // LED is ON
hirokazu_yago 0:50021795f51c 8 wait(0.2); // 200 ms
MACRUM 1:29a5b5945046 9 myled = 0.05; // LED is OFF
MACRUM 1:29a5b5945046 10 wait(1.5); // 1 sec
hirokazu_yago 0:50021795f51c 11 }
hirokazu_yago 0:50021795f51c 12 }