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:
4:8a4c7f35157c
Parent:
3:98990a014463
Child:
6:e0f528571367

File content as of revision 4:8a4c7f35157c:

#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  myled(LED1);
    
    while(1) {
        myled = 1;      // turn the on-board LED on
        wait_ms(200);   // wait 200 milliseconds
        myled = 0;      // turn the on-board LED off
        wait_ms(1000);  // wait 1000 milliseconds
        pc.printf("Blink\r\n");
    }
}