My_Nucleo_blink_led example test.

Dependencies:   mbed

Committer:
chu3098
Date:
Wed Feb 15 05:46:51 2017 +0000
Revision:
1:f2764e490f6d
Parent:
0:624f5147d8df
slowdown LED blink rate.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chu3098 0:624f5147d8df 1 #include "mbed.h"
chu3098 0:624f5147d8df 2
chu3098 0:624f5147d8df 3 DigitalOut myled(LED1);
chu3098 0:624f5147d8df 4
chu3098 0:624f5147d8df 5 int main() {
chu3098 0:624f5147d8df 6 while(1) {
chu3098 0:624f5147d8df 7 myled = 1; // LED is ON
chu3098 1:f2764e490f6d 8 wait(1.2); // 1200 ms
chu3098 0:624f5147d8df 9 myled = 0; // LED is OFF
chu3098 1:f2764e490f6d 10 wait(1.5); // 1.5 sec
chu3098 0:624f5147d8df 11 }
chu3098 0:624f5147d8df 12 }