adafruit / Adafruit_CircuitPython_NeoPixel

CircuitPython drivers for neopixels.
MIT License
304 stars 98 forks source link

NeoPixel length within Python library #93

Closed AndrewMohawk closed 3 years ago

AndrewMohawk commented 3 years ago

It looks like you cannot set the neopixel strip length within this Python library, but it "updateLength" function seems to be available elsewhere: https://github.com/adafruit/Adafruit_NeoPixel/blob/master/Adafruit_NeoPixel.cpp#L126

ladyada commented 3 years ago

correct, you need to set the length on initialization! you could always set it longer and not use all the pixels

AndrewMohawk commented 3 years ago

I'm building something that allows people to configure their system dynamically by watching the changes and they might have strips that are different sizes, so I was hoping the updateLength function would be exposed as well since its in the other libraries. I can just re-initialize on changes instead.