Closed dzfranklin closed 2 years ago
Your code doesn't look obviously wrong. I don't have an itsybitsy nrf52840 or something similar at hand, but the trinket m0 also has an apa102 led onboard.
https://github.com/smart-leds-rs/smart-leds-samples/blob/master/trinket-m0-examples/examples/trinket_apa102_onboard_blink.rs is an example for the trinket m0 with a very similar apa102 using the bitbang_hal
. You could try adapting it to the nrf52 to find out if there's an issue with using the nrf52 spi peripheral together with this crate or if something else is wrong.
Thanks! That's the code I based my attempt off of. I'm going to go with a different design that doesn't require this.
I'm trying to use the built-in DotStar led on the Adafruit ItsyBitsy nrf52840. I've confirmed on the pinout that it is an Apa102.
I initialize like so.
I've tried varying the frequency and
invert_end_frame
. I'm running in release mode.Here's how I try to actually set the led
This results in no visible change.