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: X_NUCLEO_LED61A1
Fork of LedDimming_LED61A1 by
LED Control with the X-NUCLEO-LED61A1 Expansion Board
This application provides an example of usage of the X-NUCLEO-LED61A1 LED Control Expansion Board. It shows how to control a LED stripe load connected to the board through the following control modes:
- Manual PWM Dimming;
- Manual Analog Dimming;
- Sinusoidal PWM Dimming;
- Sinusoidal Analog Dimming;
- Photo-based Analog Dimming.
The button of the MCU board, when available, can be used in the following ways:
- Short Button Press [<0.5s] for Manual Dimming;
- Medium Button Press to Switch Demo;
- Long Button Press [>2s] to Switch Power ON/OFF.
The program starts in mode 1.
Diff: main.cpp
- Revision:
- 15:ea1e402ce919
- Parent:
- 14:f2ba2ca417d3
- Child:
- 16:e39f206f26c8
diff -r f2ba2ca417d3 -r ea1e402ce919 main.cpp
--- a/main.cpp Mon Mar 14 10:07:04 2016 +0000
+++ b/main.cpp Mon Mar 14 12:20:07 2016 +0000
@@ -355,7 +355,7 @@
, SWITCH_DEMO_BUTTON_PRESS_ms / 1000.0f, SWITCH_POWER_BUTTON_PRESS_ms / 1000.0f);
/* Initializing LED Control Component. */
- led = new LED6001(D4, A3, D7, D5);
+ led = new LED6001(D4, A3, D6, D5);
if (led->Init() != COMPONENT_OK)
exit(EXIT_FAILURE);
