FORMULA GENERAL numero imaginario o real

Dependencies:   mbed STM32F103C8T6_Hello

Committer:
hudakz
Date:
Tue Feb 05 08:00:50 2019 +0000
Revision:
12:c24d2c99e2b6
Parent:
10:4b88be251088
Child:
13:485613003845
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 10:4b88be251088 12 wait_ms(200); // 200 millisecond
hudakz 7:accb2c83a007 13 myled = 1; // turn the LED off
hudakz 10:4b88be251088 14 wait_ms(1000); // 1000 millisecond
hudakz 5:3c3ef17a17a6 15 pc.printf("Blink\r\n");
hudakz 0:ab218237069e 16 }
hudakz 0:ab218237069e 17 }