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: MaximTinyTester MAX11131 CmdLine MAX541 USBDevice
Diff: main.cpp
- Revision:
- 13:7757d28efaa5
- Parent:
- 12:28aca24adc15
- Child:
- 14:93dbe154f46b
diff -r 28aca24adc15 -r 7757d28efaa5 main.cpp --- a/main.cpp Wed Jul 10 11:47:11 2019 +0000 +++ b/main.cpp Wed Jul 10 21:51:00 2019 +0000 @@ -1474,6 +1474,18 @@ DigitalOut led2(LED2, LED_OFF); // MAX32630FTHR: LED2 = LED_GREEN DigitalOut led3(LED3, LED_OFF); // MAX32630FTHR: LED3 = LED_BLUE DigitalOut led4(LED4, LED_OFF); +#else // USE_LEDS=0 +// issue #41 support Nucleo_F446RE +// there are no LED indicators on the board, LED1 interferes with SPI; +// but we still need placeholders led1 led2 led3 led4. +// Declare DigitalOut led1 led2 led3 led4 targeting safe pins. +// PinName NC means NOT_CONNECTED; DigitalOut::is_connected() returns false +# define LED_ON 0 +# define LED_OFF 1 +DigitalOut led1(NC, LED_OFF); +DigitalOut led2(NC, LED_OFF); +DigitalOut led3(NC, LED_OFF); +DigitalOut led4(NC, LED_OFF); #endif // USE_LEDS //--------------------------------------------------