mangue baja example serial

Dependencies:   mbed-STM32F103C8T6

Committer:
danilloaguiar
Date:
Tue Jul 02 22:49:09 2019 +0000
Revision:
0:85b368f15c18
Child:
1:e96b56e982b5
Danillo blink;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
danilloaguiar 0:85b368f15c18 1 #include "stm32f103c8t6.h"
danilloaguiar 0:85b368f15c18 2 #include "mbed.h"
danilloaguiar 0:85b368f15c18 3
danilloaguiar 0:85b368f15c18 4 DigitalOut myled(PC_13);
danilloaguiar 0:85b368f15c18 5
danilloaguiar 0:85b368f15c18 6 // main() runs in its own thread in the OS
danilloaguiar 0:85b368f15c18 7 int main() {
danilloaguiar 0:85b368f15c18 8 while(1) {
danilloaguiar 0:85b368f15c18 9 myled = 1; // LED is ON
danilloaguiar 0:85b368f15c18 10 wait(0.2); // 200 ms
danilloaguiar 0:85b368f15c18 11 myled = 0; // LED is OFF
danilloaguiar 0:85b368f15c18 12 wait(1.0); // 1 sec
danilloaguiar 0:85b368f15c18 13 }
danilloaguiar 0:85b368f15c18 14 }