Merge pull request #1200 from Joeboyc2/patch-2

Add the ability to override R,G,B,WPIN values
This commit is contained in:
Aircoookie 2020-09-23 18:47:48 +02:00 committed by GitHub
commit cac974b8e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,11 +88,20 @@
#define W2PIN 5 //W2 pin for analog LED strip #define W2PIN 5 //W2 pin for analog LED strip
#undef IR_PIN #undef IR_PIN
#else #else
//Enable override of Pins by using the platformio_override.ini file
//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 #ifndef RPIN
#define GPIN 12 //G pin for analog LED strip #define RPIN 5 //R pin for analog LED strip
#define BPIN 15 //B pin for analog LED strip #endif
#define WPIN 13 //W pin for analog LED strip #ifndef GPIN
#define GPIN 12 //G pin for analog LED strip
#endif
#ifndef BPIN
#define BPIN 15 //B pin for analog LED strip
#endif
#ifndef WPIN
#define WPIN 13 //W pin for analog LED strip
#endif
#endif #endif
#undef RLYPIN #undef RLYPIN
#define RLYPIN -1 //disable as pin 12 is used by analog LEDs #define RLYPIN -1 //disable as pin 12 is used by analog LEDs