smart-leds-rs / ws2812-spi-rs

Use ws2812 on rust with embedded-hal spi
Apache License 2.0
68 stars 25 forks source link

Add hint for trying out different SPI Mode parameters #37

Closed DerFetzer closed 1 month ago

DerFetzer commented 2 months ago

Yesterday I spent half the night debugging why the SPI on my Black Pill (stm32f411) board behaved weirdly. When checking with my oscilloscope I figured out that the MOSI line was set to high between bytes even with the mosi_idle_high feature enabled.

The solution was to set the phase in the Mode struct to CaptureOnSecondTransition.

This PR adds this information to the readme.