Skip to content
mrcory edited this page Aug 8, 2019 · 4 revisions

LED Feature

The controller is compatible with FastLED and with a single channel LED strip. To support a single channel LED strip, you will have to power the D1 Mini from a 12v source. My custom PCB has a jumper that allows the ability to run the shade from 12v or 5v. (Via a sufficient USB power supply.) With the jumper open, 12v can be used to power the LEDs and motor. A 5v regulator must be used to power the D1 Mini.

FastLED Setup

Edit the following in config.h

#define lightMode = 1 - 1:For FastLED

int ledButtonBrightness = 50 - Brightness that the hardware button will turn on and off

#define NUM_LEDS - Number of LEDs

#define DATA_PIN - Pin used for LED control

#define LED_TYPE - Your flavor of LED

#define COLOR_ORDER - Your LED's color order

12v LED Strip

When using a PWM controlled LED strip on my PCB, a pulldown resistor can be connect from "D" to "-" on J2.

Clone this wiki locally