Cambio de pin de entrada digital a PA10

Dependencies:   BufferedSerial PinDetect mbed

Fork of DTK-MEGAPACA_NUCLEO by Felícito Manzano

Revision:
0:d81be2ce0c05
Child:
1:f05b1d8380cb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Jul 17 08:46:45 2016 +0000
@@ -0,0 +1,16 @@
+#include "MapleMini.h"
+#include "mbed.h"
+ 
+Serial      pc(PA_2, PA_3);
+DigitalOut  myled(LED1);
+ 
+int main() {
+    confSysClock();     // Configure system clock (72MHz HSE clock, 36MHz APB1 peripheral clock)
+    while(1) {
+        myled = 1;      // turn the LED on
+        wait(0.2);      // 200 ms
+        myled = 0;      // turn the LED off
+        wait(1.0);      // 1 sec
+        pc.printf("Blink\r\n");
+    }
+}