Format code according to conventions (#12292)
Co-authored-by: QMK Bot <hello@qmk.fm>
This commit is contained in:
parent
6f7466b6dd
commit
32f0567ca5
1 changed files with 6 additions and 9 deletions
|
@ -112,10 +112,7 @@ void ws2812_init(void) {
|
||||||
palSetLineMode(RGB_DI_PIN, WS2812_OUTPUT_MODE);
|
palSetLineMode(RGB_DI_PIN, WS2812_OUTPUT_MODE);
|
||||||
|
|
||||||
// TODO: more dynamic baudrate
|
// TODO: more dynamic baudrate
|
||||||
static const SPIConfig spicfg = {
|
static const SPIConfig spicfg = {WS2812_SPI_BUFFER_MODE, NULL, PAL_PORT(RGB_DI_PIN), PAL_PAD(RGB_DI_PIN), WS2812_SPI_DIVISOR};
|
||||||
WS2812_SPI_BUFFER_MODE, NULL, PAL_PORT(RGB_DI_PIN), PAL_PAD(RGB_DI_PIN),
|
|
||||||
WS2812_SPI_DIVISOR
|
|
||||||
};
|
|
||||||
|
|
||||||
spiAcquireBus(&WS2812_SPI); /* Acquire ownership of the bus. */
|
spiAcquireBus(&WS2812_SPI); /* Acquire ownership of the bus. */
|
||||||
spiStart(&WS2812_SPI, &spicfg); /* Setup transfer parameters. */
|
spiStart(&WS2812_SPI, &spicfg); /* Setup transfer parameters. */
|
||||||
|
|
Loading…
Reference in a new issue