FORMULA GENERAL numero imaginario o real

Dependencies:   mbed STM32F103C8T6_Hello

Committer:
hudakz
Date:
Tue Feb 05 08:30:37 2019 +0000
Revision:
13:485613003845
Parent:
12:c24d2c99e2b6
Child:
14:596a61f27f36
Updated.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hudakz 0:ab218237069e 1 #include "mbed.h"
hudakz 12:c24d2c99e2b6 2
hudakz 12:c24d2c99e2b6 3 Serial pc(PA_2, PA_3); // TX, RX
hudakz 12:c24d2c99e2b6 4 DigitalOut myled(PC_13); // on-board LED
hudakz 10:4b88be251088 5
hudakz 12:c24d2c99e2b6 6 int main()
hudakz 12:c24d2c99e2b6 7 {
hudakz 0:ab218237069e 8 while(1) {
hudakz 12:c24d2c99e2b6 9 // The on-board LED is connected via a resistor to +3.3V (not to GND).
hudakz 12:c24d2c99e2b6 10 // So the LED is active on 0
hudakz 7:accb2c83a007 11 myled = 0; // turn the LED on
hudakz 13:485613003845 12 wait_ms(200); // wait 200 millisecond
hudakz 7:accb2c83a007 13 myled = 1; // turn the LED off
hudakz 5:3c3ef17a17a6 14 pc.printf("Blink\r\n");
hudakz 13:485613003845 15 wait_ms(1000); // wait 1000 millisecond
hudakz 0:ab218237069e 16 }
hudakz 0:ab218237069e 17 }