mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-16 04:41:28 +00:00
Deploying to gh-pages from master @ 597d2e0e7b
🚀
This commit is contained in:
parent
6c947ef1fb
commit
3fb0cb1c14
@ -72,7 +72,9 @@ WS2812_DRIVER = spi
|
|||||||
Configure the hardware via your config.h:
|
Configure the hardware via your config.h:
|
||||||
```c
|
```c
|
||||||
#define WS2812_SPI SPID1 // default: SPID1
|
#define WS2812_SPI SPID1 // default: SPID1
|
||||||
#define WS2812_SPI_MOSI_PAL_MODE 5 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5
|
#define WS2812_SPI_MOSI_PAL_MODE 5 // MOSI pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5
|
||||||
|
#define WS2812_SPI_SCK_PIN B3 // Required for F072, may be for others -- SCK pin, see the respective datasheet for the appropriate values for your MCU. default: unspecified
|
||||||
|
#define WS2812_SPI_SCK_PAL_MODE 5 // SCK pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 5
|
||||||
```
|
```
|
||||||
|
|
||||||
You must also turn on the SPI feature in your halconf.h and mcuconf.h
|
You must also turn on the SPI feature in your halconf.h and mcuconf.h
|
||||||
@ -100,11 +102,11 @@ Only divisors of 2, 4, 8, 16, 32, 64, 128 and 256 are supported by hardware.
|
|||||||
|
|
||||||
While not an exhaustive list, the following table provides the scenarios that have been partially validated:
|
While not an exhaustive list, the following table provides the scenarios that have been partially validated:
|
||||||
|
|
||||||
| | SPI1 | SPI2 | SPI3 |
|
| | SPI1 | SPI2 | SPI3 |
|
||||||
|-|-|-|-|
|
|------|---------------------------------------------|-----------------------------------------|-----------------------|
|
||||||
| f072 | ? | B15 :heavy_check_mark: | N/A |
|
| f072 | ? | B15 :heavy_check_mark: (needs SCK: B13) | N/A |
|
||||||
| f103 | A7 :heavy_check_mark: | B15 :heavy_check_mark: | N/A |
|
| f103 | A7 :heavy_check_mark: | B15 :heavy_check_mark: | N/A |
|
||||||
| f303 | A7 :heavy_check_mark: B5 :heavy_check_mark: | B15 :heavy_check_mark: | B5 :heavy_check_mark: |
|
| f303 | A7 :heavy_check_mark: B5 :heavy_check_mark: | B15 :heavy_check_mark: | B5 :heavy_check_mark: |
|
||||||
|
|
||||||
*Other supported ChibiOS boards and/or pins may function, it will be highly chip and configuration dependent.*
|
*Other supported ChibiOS boards and/or pins may function, it will be highly chip and configuration dependent.*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user