Skip to content

Commit 2cb2bf3

Browse files
authored
Merge pull request #2545 from MaBecker/master
make neopixel reliable with one channel and multiple pins (fix 2505)
2 parents ff487e0 + 41c26ac commit 2cb2bf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

targets/esp32/esp32_neopixel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ void neopixel_init(int gpioNum){
170170
if (neopixelConfiguredGPIO) {
171171
rmt_driver_uninstall(RMTCHANNEL);
172172
if (neopixelConfiguredGPIO != -1) {
173-
gpio_matrix_out(neopixelConfiguredGPIO,0,0,0);
173+
gpio_matrix_out(neopixelConfiguredGPIO,SIG_GPIO_OUT_IDX,0,0);
174174
}
175175
}
176176
neopixelConfiguredGPIO = gpioNum;
@@ -200,7 +200,7 @@ void neopixel_init(int gpioNum){
200200
if (neopixelConfiguredGPIO != gpioNum) {
201201
// detach last pin
202202
if (neopixelConfiguredGPIO != -1) {
203-
gpio_matrix_out(neopixelConfiguredGPIO,0,0,0);
203+
gpio_matrix_out(neopixelConfiguredGPIO,SIG_GPIO_OUT_IDX,0,0);
204204
}
205205
neopixelConfiguredGPIO = gpioNum;
206206
}

0 commit comments

Comments
 (0)