From 5e1d20fc722b617392ec683397c5f329f8abbf3c Mon Sep 17 00:00:00 2001 From: Dennis Hinzpeter Date: Wed, 22 Apr 2020 23:09:21 +0200 Subject: [PATCH] Add DIY PCB SHOJO_PCB analog --- platformio.ini | 7 +++++++ wled00/NpbWrapper.h | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/platformio.ini b/platformio.ini index fe96477a5..0e460f64a 100644 --- a/platformio.ini +++ b/platformio.ini @@ -36,6 +36,7 @@ default_envs = d1_mini, esp01, esp01_1m_ota, esp32dev ; default_envs = esp8285_4CH_MagicHome ; default_envs = esp8285_4CH_H801 ; default_envs = esp8285_5CH_H801 +; default_envs = d1_mini_5CH_Shojo_PCB [common] # ------------------------------------------------------------------------------ @@ -240,6 +241,12 @@ platform = ${common.platform_latest} board_build.ldscript = ${common.ldscript_1m0m} build_flags = ${common.build_flags_esp8266} -D WLED_DISABLE_HUESYNC -D WLED_USE_ANALOG_LEDS -D WLED_USE_H801 -D WLED_ENABLE_5CH_LEDS +[env:d1_mini_5CH_Shojo_PCB] +board = d1_mini +platform = ${common.platform_latest} +board_build.ldscript = ${common.ldscript_4m1m} +build_flags = ${common.build_flags_esp8266} -D WLED_USE_ANALOG_LEDS -D SHOJO_PCB -D WLED_ENABLE_5CH_LEDS + # ------------------------------------------------------------------------------ # DEVELOPMENT BOARDS # ------------------------------------------------------------------------------ diff --git a/wled00/NpbWrapper.h b/wled00/NpbWrapper.h index 5503d8c00..faee293a3 100644 --- a/wled00/NpbWrapper.h +++ b/wled00/NpbWrapper.h @@ -62,6 +62,13 @@ #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 + #elif defined(SHOJO_PCB) + //PWM pins - to use with Shojo PCB (https://www.bastelbunker.de/esp-rgbww-wifi-led-controller-vbs-edition/) + #define RPIN 14 //R pin for analog LED strip + #define GPIN 4 //G pin for analog LED strip + #define BPIN 5 //B pin for analog LED strip + #define WPIN 15 //W pin for analog LED strip + #define W2PIN 12 //W2 pin for analog LED strip #else //PWM pins - PINs 5,12,13,15 are used with Magic Home LED Controller #define RPIN 5 //R pin for analog LED strip