demo

Dependencies:   mbed-STM32F103C8T6 mbed

Committer:
sandrosole
Date:
Mon Oct 16 14:40:55 2017 +0000
Revision:
0:da3482d9c6da
test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sandrosole 0:da3482d9c6da 1 #include "mbed.h"
sandrosole 0:da3482d9c6da 2
sandrosole 0:da3482d9c6da 3 DigitalOut myled(LED1);
sandrosole 0:da3482d9c6da 4
sandrosole 0:da3482d9c6da 5 int main() {
sandrosole 0:da3482d9c6da 6 while(1) {
sandrosole 0:da3482d9c6da 7 myled = 1; // LED is ON
sandrosole 0:da3482d9c6da 8 wait(0.2); // 200 ms
sandrosole 0:da3482d9c6da 9 myled = 0; // LED is OFF
sandrosole 0:da3482d9c6da 10 wait(1.0); // 1 sec
sandrosole 0:da3482d9c6da 11 }
sandrosole 0:da3482d9c6da 12 }