danillo blink

Dependencies:   mbed-STM32F103C8T6

main.cpp

Committer:
danilloaguiar
Date:
2019-07-02
Revision:
0:85b368f15c18
Child:
1:e96b56e982b5

File content as of revision 0:85b368f15c18:

#include "stm32f103c8t6.h"
#include "mbed.h"
  
DigitalOut myled(PC_13);

// main() runs in its own thread in the OS
int main() {  
    while(1) {
        myled = 1; // LED is ON
        wait(0.2); // 200 ms
        myled = 0; // LED is OFF
        wait(1.0); // 1 sec
    }
}