Added support for BW-LT11

This commit is contained in:
Ament Martin 2020-04-10 21:33:16 +02:00
parent 3006d25406
commit 3e9b44d193
2 changed files with 13 additions and 5 deletions

View File

@ -28,7 +28,9 @@ build_flags = ${common.build_flags_esp8266}
; to drive analog LED strips (aka 5050), uncomment the following ; to drive analog LED strips (aka 5050), uncomment the following
; PWM pins 5,12,13,15 are used with Magic Home LED Controller (default) ; PWM pins 5,12,13,15 are used with Magic Home LED Controller (default)
; -D WLED_USE_ANALOG_LEDS ; -D WLED_USE_ANALOG_LEDS
; for the H801 controler (PINs 15,13,12,14 (W2 = 04)) uncomment this ; for the H801 controller (PINs 15,13,12,14 (W2 = 04)) uncomment this
; -D WLED_USE_H801 ; -D WLED_USE_H801
; for the BW-LT11 controller (PINs 12,4,14,5 ) uncomment this
; -D WLED_USE_BWLT11
; and to enable channel 5 for RGBW-CT led strips this ; and to enable channel 5 for RGBW-CT led strips this
; -D WLED_USE_5CH_LEDS ; -D WLED_USE_5CH_LEDS

View File

@ -55,6 +55,12 @@
#undef BTNPIN #undef BTNPIN
#undef IR_PIN #undef IR_PIN
#define IR_PIN 0 //infrared pin (-1 to disable) MagicHome: 4, H801 Wifi: 0 #define IR_PIN 0 //infrared pin (-1 to disable) MagicHome: 4, H801 Wifi: 0
#elif defined(WLED_USE_BWLT11)
//PWM pins - to use with BW-LT11
#define RPIN 12 //R pin for analog LED strip
#define GPIN 4 //G pin for analog LED strip
#define BPIN 14 //B pin for analog LED strip
#define WPIN 5 //W pin for analog LED strip
#else #else
//PWM pins - PINs 5,12,13,15 are used with Magic Home LED Controller //PWM pins - PINs 5,12,13,15 are used with Magic Home LED Controller
#define RPIN 5 //R pin for analog LED strip #define RPIN 5 //R pin for analog LED strip