![](/media/cache/profiles/1be11c5070263813a6c631ecdba885ef.jpg.50x50_q85.png)
Cambio de pin de entrada digital a PA10
Dependencies: BufferedSerial PinDetect mbed
Fork of DTK-MEGAPACA_NUCLEO by
main.cpp@4:8a4c7f35157c, 2016-10-09 (annotated)
- Committer:
- hudakz
- Date:
- Sun Oct 09 09:41:41 2016 +0000
- Revision:
- 4:8a4c7f35157c
- Parent:
- 3:98990a014463
- Child:
- 6:e0f528571367
Updated
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hudakz | 0:d81be2ce0c05 | 1 | #include "MapleMini.h" |
hudakz | 0:d81be2ce0c05 | 2 | #include "mbed.h" |
hudakz | 3:98990a014463 | 3 | |
hudakz | 0:d81be2ce0c05 | 4 | int main() { |
hudakz | 3:98990a014463 | 5 | confSysClock(); //Configure system clock (72MHz HSE clock, 48MHz USB clock) |
hudakz | 3:98990a014463 | 6 | |
hudakz | 3:98990a014463 | 7 | Serial pc(PA_2, PA_3); |
hudakz | 4:8a4c7f35157c | 8 | DigitalOut myled(LED1); |
hudakz | 3:98990a014463 | 9 | |
hudakz | 0:d81be2ce0c05 | 10 | while(1) { |
hudakz | 4:8a4c7f35157c | 11 | myled = 1; // turn the on-board LED on |
hudakz | 4:8a4c7f35157c | 12 | wait_ms(200); // wait 200 milliseconds |
hudakz | 4:8a4c7f35157c | 13 | myled = 0; // turn the on-board LED off |
hudakz | 4:8a4c7f35157c | 14 | wait_ms(1000); // wait 1000 milliseconds |
hudakz | 0:d81be2ce0c05 | 15 | pc.printf("Blink\r\n"); |
hudakz | 0:d81be2ce0c05 | 16 | } |
hudakz | 0:d81be2ce0c05 | 17 | } |
hudakz | 3:98990a014463 | 18 |