adafruit / Adafruit_Blinka

Add CircuitPython hardware API and libraries to MicroPython & CPython devices
https://learn.adafruit.com/circuitpython-on-raspberrypi-linux
MIT License
450 stars 337 forks source link

Neopixels on NVIDIA Jetson #242

Closed makermelissa closed 3 years ago

makermelissa commented 4 years ago

NeoPixel support is crashing on the NVidia Jetson TX2.

See more details here: https://forums.adafruit.com/viewtopic.php?f=60&t=161551

yeyeto2788 commented 4 years ago

Hey @makermelissa,

I did a quick look at Adafruit-Circuitpython-NeoPixel lib and the error comes from https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel/blob/master/neopixel.py#L34 which is in calling the neopixel module of the board which in this case is only applied for Raspberry (https://github.com/adafruit/Adafruit_Blinka/blob/master/src/neopixel_write.py#L14-L19)

It's there a way to make a common and agnostic neopixel module?

Regards.

makermelissa commented 4 years ago

Maybe try this library: https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel_SPI

yeyeto2788 commented 4 years ago

Hey @makermelissa, I have taken a look at the library you mentioned and I noticed the following:

Let me know your thoughts :yum:

bofetadas commented 4 years ago

Hey @makermelissa ! Thanks for sharing the neopixel_spi library with me. This should work like a charm on my development board (at least no importing errors anymore) but soon I'd have to move to a smaller carrier board that unfortunately does not offer any SPI interface. I'll go for a small MC in between my Linux machine and the neopixels for now. However, once the neopixel library receives an update and supports more than just the RasPi, I think lots of folks out there would be delighted :) Thanks for your support!

ladyada commented 4 years ago

NVIDIA would have to supply and support the neopixel addition. the chances of that happening are slim - but you should ask them. we cannot do it because we don't have any insight into any internals, DMA or whatever. you could use DotStar LEDs, would look the same and work well.

bofetadas commented 4 years ago

Okay, I'll have a look on the DotStar LEDs then. Thanks for the advice! One suggestion: I think it might be a good idea to rewrite the Python & CircuitPython paragraph on top of this page since it is kind of misleading information since currently the only supported computer is the Raspberry Pi (as @yeyeto2788 mentioned earlier). What do you think?

ladyada commented 4 years ago

sure, added

ladyada commented 3 years ago

can use SPI now https://learn.adafruit.com/circuitpython-libraries-on-linux-and-the-nvidia-jetson-nano/neopixels-with-spi