Skip to content

Commit 0d0436b

Browse files
authored
Merge pull request adafruit#3637 from hierophect/esp32s2-neopixel-parallel
ESP32S2: Fix parallel strip issue with Neopixels
2 parents 9bf7790 + 23afe08 commit 0d0436b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ports/esp32s2/common-hal/neopixel_write/__init__.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,6 @@ void common_hal_neopixel_write (const digitalio_digitalinout_obj_t* digitalinout
125125

126126
// Free channel again
127127
esp32s2_peripherals_free_rmt(config.channel);
128+
// Swap pin back to GPIO mode
129+
gpio_set_direction(digitalinout->pin->number, GPIO_MODE_OUTPUT);
128130
}

0 commit comments

Comments
 (0)