You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ws2812_driver.md
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,25 @@ Configure the hardware via your config.h:
77
77
78
78
You must also turn on the SPI feature in your halconf.h and mcuconf.h
79
79
80
+
#### Circular Buffer Mode
81
+
Some boards may flicker while in the normal buffer mode. To fix this issue, circular buffer mode may be used to rectify the issue.
82
+
83
+
By default, the circular buffer mode is disabled.
84
+
85
+
To enable this alternative buffer mode, place this into your `config.h` file:
86
+
```c
87
+
#define WS2812_SPI_USE_CIRCULAR_BUFFER
88
+
```
89
+
90
+
#### Setting baudrate with divisor
91
+
To adjust the baudrate at which the SPI peripheral is configured, users will need to derive the target baudrate from the clock tree provided by STM32CubeMX.
92
+
93
+
Only divisors of 2, 4, 8, 16, 32, 64, 128 and 256 are supported by hardware.
0 commit comments