adafruit / ArduinoCore-samd

116 stars 119 forks source link

set DRVSTR on the neopixel power pin. #312

Closed WestfW closed 2 years ago

WestfW commented 2 years ago

https://github.com/adafruit/ArduinoCore-samd/issues/311

SAMD output pins are used to power the built-in neopixel on some boards, but the pins all default to low (2ma?) drive strength. This is apparently insufficient and can cause color shifts. This PR sets the DRVSTR bit in the port pin configuration, at the time the neopixel power is turned on in initVariant()

ladyada commented 2 years ago

hi this isnt what we'd want to do, we should turn on DRVSTR for all gpio pins when pin mode is set to output :)