File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,14 @@ It provides two variants:
41
41
- Is everything white? This may stem from an spi peripheral that's too slow or
42
42
one that takes too much time in-between bytes
43
43
44
+ - are you using the ` --release ` compiler flag?
45
+
46
+ The timing of each byte passed over SPI is very sensitive, and running code compiled
47
+ without full optimizations can throw off your timing. Always use either ` --release `
48
+ flag with your ` cargo <command> ` , or alternatively set ` [profile.dev] opt-level = "3" `
49
+ To ensure timing matches what your programmed. A dead giveaway of this is when all
50
+ pixels go full brightness for every color.
51
+
44
52
When opening an issue about wrong/strange data, it would help if you include
45
53
your code (of course) and a capture of MOSI & SCK from an oscilloscope/a logic
46
54
analyzer.
You can’t perform that action at this time.
0 commit comments