Skip to content

Commit 3aa6271

Browse files
Merge pull request #37 from DerFetzer/patch-1
Add hint for trying out different SPI Mode parameters
2 parents d84d759 + f2986f3 commit 3aa6271

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,15 @@ It provides three variants:
4141

4242
You could try using the `mosi_idle_high` feature, it might help.
4343

44+
If this does not help you can try different `embedded_hal::spi::Mode` parameters. For example on
45+
stm32f411 (as used for example on the Black Pill board) you have to set `phase` to
46+
`Phase::CaptureOnSecondTransition`.
47+
4448
- Is your device fast enough? Is your iterator fast enough? Taking too long may
4549
completely screw up the timings for the normal version. Try the prerendered variant.
4650

4751
- Is everything white? This may stem from an spi peripheral that's too slow or
48-
one that takes too much time in-between bytes
52+
one that takes too much time in-between bytes.
4953

5054
- Is your first LED the wrong brightness/color while the rest of your LED's do what you expect?
5155
This is due to low voltage of data line, or too much of a voltage difference between Vin and Din

0 commit comments

Comments
 (0)