Programa Gauss Jordan.

Dependencies:   mbed

main.cpp

Committer:
hudakz
Date:
2019-02-05
Revision:
12:c24d2c99e2b6
Parent:
10:4b88be251088
Child:
13:485613003845

File content as of revision 12:c24d2c99e2b6:

#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);   // 200 millisecond
        myled = 1;      // turn the LED off
        wait_ms(1000);  // 1000 millisecond
        pc.printf("Blink\r\n");
    }
}