Cambio de pin de entrada digital a PA10

Dependencies:   BufferedSerial PinDetect mbed

Fork of DTK-MEGAPACA_NUCLEO by Felícito Manzano

Committer:
hudakz
Date:
Sat Aug 13 12:04:01 2016 +0000
Revision:
2:01df16953268
Parent:
1:f05b1d8380cb
Child:
3:98990a014463
Updated.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hudakz 0:d81be2ce0c05 1 #include "MapleMini.h"
hudakz 0:d81be2ce0c05 2 #include "mbed.h"
hudakz 0:d81be2ce0c05 3
hudakz 0:d81be2ce0c05 4 Serial pc(PA_2, PA_3);
hudakz 0:d81be2ce0c05 5 DigitalOut myled(LED1);
hudakz 0:d81be2ce0c05 6
hudakz 0:d81be2ce0c05 7 int main() {
hudakz 0:d81be2ce0c05 8 while(1) {
hudakz 0:d81be2ce0c05 9 myled = 1; // turn the LED on
hudakz 0:d81be2ce0c05 10 wait(0.2); // 200 ms
hudakz 0:d81be2ce0c05 11 myled = 0; // turn the LED off
hudakz 0:d81be2ce0c05 12 wait(1.0); // 1 sec
hudakz 0:d81be2ce0c05 13 pc.printf("Blink\r\n");
hudakz 0:d81be2ce0c05 14 }
hudakz 0:d81be2ce0c05 15 }