Commit 65eefcc
authored
Allow NEOPIXEL_POWER* init outside of NeoPixel lib
Ignore exception when trying to set up `NEOPIXEL_POWER`* pin, since user may have set that up already for controlling power independently of this library.
Tested on `Adafruit CircuitPython 7.0.0-alpha.5-187-g1e53cf40a on 2021-08-11; Adafruit MagTag with ESP32S2`; code snippet:
```py
import digitalio, neopixel
# NeoPixels & light sensor
aux_power_io = digitalio.DigitalInOut(board.NEOPIXEL_POWER_INVERTED)
aux_power_io.direction = Direction.OUTPUT
aux_power_io.value = False # active low
status_light = neopixel.NeoPixel(board.NEOPIXEL, 4, brightness=0.05, pixel_order=neopixel.GRB)
```1 parent b2f21e6 commit 65eefcc
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
| |||
0 commit comments