Test application for the STMicroelectronics X-NUCLEO-LED61A1 LED Control Expansion Board showing several LED control modes, built against mbed OS.

Dependencies:   X_NUCLEO_LED61A1

Fork of LedDimming_LED61A1 by ST

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:

  1. Manual PWM Dimming;
  2. Manual Analog Dimming;
  3. Sinusoidal PWM Dimming;
  4. Sinusoidal Analog Dimming;
  5. 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.

Revision:
15:ea1e402ce919
Parent:
14:f2ba2ca417d3
Child:
16:e39f206f26c8
--- 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);