just test

Dependencies:   mbed

Fork of Nucleo_blink_led by joseph chen

Committer:
ittraining
Date:
Thu May 05 02:37:33 2016 +0000
Revision:
4:ba69a7a84bef
Parent:
2:b60cb847489c
joseph test;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
screamer 0:005629fe3609 1 #include "mbed.h"
screamer 0:005629fe3609 2
ittraining 4:ba69a7a84bef 3 DigitalOut myled(PA_5);
screamer 0:005629fe3609 4
screamer 0:005629fe3609 5 int main() {
screamer 0:005629fe3609 6 while(1) {
bcostm 2:b60cb847489c 7 myled = 1; // LED is ON
ittraining 4:ba69a7a84bef 8 wait(0.5); // 200 ms
bcostm 2:b60cb847489c 9 myled = 0; // LED is OFF
ittraining 4:ba69a7a84bef 10 wait(0.5); // 1 sec
screamer 0:005629fe3609 11 }
screamer 0:005629fe3609 12 }