|
5 | 5 | //PIN CONFIGURATION
|
6 | 6 | #define LEDPIN 2 //strip pin. Any for ESP32, gpio2 or 3 is recommended for ESP8266 (gpio2/3 are labeled D4/RX on NodeMCU and Wemos)
|
7 | 7 | //#define USE_APA102 // Uncomment for using APA102 LEDs.
|
8 |
| -#define BTNPIN 0 //button pin. Needs to have pullup (gpio0 recommended) |
9 |
| -#define IR_PIN 3 //infrared pin (-1 to disable) MagicHome: 4, H801 Wifi: 3 |
| 8 | +#define BTNPIN -1 //button pin. Needs to have pullup (gpio0 recommended) |
| 9 | +#define IR_PIN 0 //infrared pin (-1 to disable) MagicHome: 4, H801 Wifi: 0 |
10 | 10 | #define RLYPIN -1 //pin for relay, will be set HIGH if LEDs are on (-1 to disable). Also usable for standby leds, triggers,...
|
11 | 11 | #define AUXPIN -1 //debug auxiliary output pin (-1 to disable)
|
12 | 12 |
|
|
21 | 21 | #endif
|
22 | 22 |
|
23 | 23 | #ifndef WLED_DISABLE_ANALOG_LEDS
|
24 |
| - /*PWM pins - PINs 5,12,13,15 are used with Magic Home LED Controller |
25 |
| - #define RPIN 5 //R pin for analog LED strip |
26 |
| - #define GPIN 12 //G pin for analog LED strip |
27 |
| - #define BPIN 13 //B pin for analog LED strip |
28 |
| - #define WPIN 15 //W pin for analog LED strip |
29 |
| - */ |
30 |
| - //PWM pins - PINs 15,13,12,14 are used with H801 Wifi LED Controller |
| 24 | + //PWM pins - PINs 15,13,12,14 (W2 = 04)are used with H801 Wifi LED Controller |
31 | 25 | #define RPIN 15 //R pin for analog LED strip
|
32 | 26 | #define GPIN 13 //G pin for analog LED strip
|
33 | 27 | #define BPIN 12 //B pin for analog LED strip
|
34 |
| - #define WPIN 14 //W pin for analog LED |
| 28 | + #define WPIN 14 //W pin for analog LED strip (W1: 14, W2: 04) |
35 | 29 | //
|
| 30 | + /*PWM pins - PINs 5,12,13,15 are used with Magic Home LED Controller |
| 31 | + #define RPIN 5 //R pin for analog LED strip |
| 32 | + #define GPIN 12 //G pin for analog LED strip |
| 33 | + #define BPIN 13 //B pin for analog LED strip |
| 34 | + #define WPIN 15 //W pin for analog LED strip (W1: 14, W2: 04) |
| 35 | + */ |
36 | 36 | #endif
|
37 | 37 |
|
38 | 38 | //automatically uses the right driver method for each platform
|
|
0 commit comments