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 CmdLine MAX541 MAX5715 USBDevice
Diff: main.cpp
- Revision:
- 20:92879f9c138d
- Parent:
- 19:dbd1f2315958
--- a/main.cpp Tue Aug 13 23:23:55 2019 +0000 +++ b/main.cpp Mon Sep 23 01:15:17 2019 +0000 @@ -1760,8 +1760,16 @@ # define LED_ON 1 # define LED_OFF 0 #else // not defined(TARGET_LPC1768 etc.) -# define LED_ON 1 -# define LED_OFF 0 +// USE_LEDS with some platform other than MAX32630, MAX32625MBED, LPC1768 +// bugfix for MAX32600MBED LED blink pattern: check if LED_ON/LED_OFF already defined +# ifndef LED_ON +# define LED_ON 0 +# endif +# ifndef LED_OFF +# define LED_OFF 1 +# endif +//# define LED_ON 1 +//# define LED_OFF 0 #endif // target definition DigitalOut led1(LED1, LED_OFF); // MAX32630FTHR: LED1 = LED_RED DigitalOut led2(LED2, LED_OFF); // MAX32630FTHR: LED2 = LED_GREEN