Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed mbed-STM32F103C8T6
Diff: globals.cpp
- Revision:
- 7:467e350d1a10
- Parent:
- 6:41a4ad385daa
- Child:
- 11:b571de4666c9
--- a/globals.cpp Tue Dec 30 10:10:02 2014 +0000 +++ b/globals.cpp Wed Jun 10 20:15:48 2020 +0000 @@ -2,12 +2,21 @@ -DigitalOut led1 (LED1); -DigitalOut led2 (LED2); -DigitalOut led3 (LED3); -DigitalOut led4 (LED4); +DigitalOut led1 (PA_4); // not present on Maple Mini +DigitalOut led2 (PA_5); // not present on Maple Mini +DigitalOut led3 (PA_6); // not present on Maple Mini +DigitalOut led4 (PA_7); // not present on Maple Mini // We use can on mbed pins 29(CAN_TXD) and 30(CAN_RXD). -CAN can2(p30, p29); +//CAN can2(p30, p29); // for LPC1768 +CAN can2(PA_11, PA_12); // for Blue Pill 64K Maple Mini +// OR can on mbed pins 10(CAN_TXD) and 9(CAN_RXD). +//CAN can1(p9, p10); CANMessage can_MsgRx; -Serial pc(USBTX, USBRX); \ No newline at end of file + +int got_alt = false; + +unsigned char alt[3]; + +//Serial pc(USBTX, USBRX); -- for LPC1768 +Serial pc(PA_2, PA_3); // for Maple Mini \ No newline at end of file