FORMULA GENERAL numero imaginario o real

Dependencies:   mbed STM32F103C8T6_Hello

main.cpp

Committer:
hudakz
Date:
2019-02-05
Revision:
13:485613003845
Parent:
12:c24d2c99e2b6
Child:
14:596a61f27f36

File content as of revision 13:485613003845:

#include "mbed.h"

Serial      pc(PA_2, PA_3); // TX, RX
DigitalOut  myled(PC_13);   // on-board LED
  
int main() 
{  
    while(1) {
        // The on-board LED is connected via a resistor to +3.3V (not to GND). 
        // So the LED is active on 0
        myled = 0;      // turn the LED on
        wait_ms(200);   // wait 200 millisecond
        myled = 1;      // turn the LED off
        pc.printf("Blink\r\n");
        wait_ms(1000);  // wait 1000 millisecond
    }
}