Add GPIO reset to end of neopixel-write
This commit is contained in:
parent
05d663b183
commit
23afe08b6f
|
@ -125,4 +125,6 @@ void common_hal_neopixel_write (const digitalio_digitalinout_obj_t* digitalinout
|
||||||
|
|
||||||
// Free channel again
|
// Free channel again
|
||||||
esp32s2_peripherals_free_rmt(config.channel);
|
esp32s2_peripherals_free_rmt(config.channel);
|
||||||
|
// Swap pin back to GPIO mode
|
||||||
|
gpio_set_direction(digitalinout->pin->number, GPIO_MODE_OUTPUT);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue