Add GPIO reset to end of neopixel-write

This commit is contained in:
Lucian Copeland 2020-11-02 17:15:19 -05:00
parent 05d663b183
commit 23afe08b6f
1 changed files with 2 additions and 0 deletions

View File

@ -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);
} }