Cambio de pin de entrada digital a PA10

Dependencies:   BufferedSerial PinDetect mbed

Fork of DTK-MEGAPACA_NUCLEO by Felícito Manzano

main.cpp

Committer:
hudakz
Date:
2016-10-09
Revision:
3:98990a014463
Parent:
2:01df16953268
Child:
4:8a4c7f35157c

File content as of revision 3:98990a014463:

#include "MapleMini.h"
#include "mbed.h"
  
int main() {
    confSysClock();     //Configure system clock (72MHz HSE clock, 48MHz USB clock)
    
    Serial      pc(PA_2, PA_3);
    DigitalOut  led(LED1);
    
    while(1) {
        led = 1;        // turn the on-board LED on
        wait_ms(200);   // wait 200 millisecond
        led = 0;        // turn the on-board LED off
        wait_ms(1000);  // wait 1000 millisecond
        pc.printf("Blink\r\n");
    }
}