|
| 1 | +# Kconfig file for package sean_ws2812b |
| 2 | +menuconfig PKG_USING_SEAN_WS2812B |
| 3 | + bool "Sean's WS2812B LED Driver Package" |
| 4 | + default n |
| 5 | + |
| 6 | +if PKG_USING_SEAN_WS2812B |
| 7 | + |
| 8 | + config PKG_SEAN_WS2812B_PATH |
| 9 | + string |
| 10 | + default "/packages/peripherals/sean_ws2812b" |
| 11 | + |
| 12 | + choice |
| 13 | + prompt "Version" |
| 14 | + help |
| 15 | + Select the version of sean_ws2812b |
| 16 | + |
| 17 | + config PKG_USING_SEAN_WS2812B_LATEST |
| 18 | + bool "latest version (master branch)" |
| 19 | + |
| 20 | + endchoice |
| 21 | + |
| 22 | + config PKG_SEAN_WS2812B_VER |
| 23 | + string |
| 24 | + default "latest" if PKG_USING_SEAN_WS2812B_LATEST |
| 25 | + |
| 26 | + config SEAN_WS2812B_SPI_BUS_NAME |
| 27 | + string "SPI bus name (master)" |
| 28 | + default "spi1" |
| 29 | + help |
| 30 | + SPI bus (controller) name for WS2812B, e.g., 'spi1'. |
| 31 | + |
| 32 | + config SEAN_WS2812B_SPI_DEV_NAME |
| 33 | + string "SPI device name (slave)" |
| 34 | + default "spi10" |
| 35 | + help |
| 36 | + SPI device name for WS2812B, e.g., 'spi10'. |
| 37 | + |
| 38 | + config SEAN_WS2812B_SPI_CS_PORT |
| 39 | + string "SPI CS GPIO port" |
| 40 | + default "GPIOB" |
| 41 | + help |
| 42 | + SPI CS GPIO port for WS2812B, e.g., 'GPIOB'. |
| 43 | + |
| 44 | + config SEAN_WS2812B_SPI_CS_PIN |
| 45 | + int "SPI CS GPIO pin number" |
| 46 | + default 12 |
| 47 | + help |
| 48 | + SPI CS GPIO pin number for WS2812B, e.g., 12. |
| 49 | + |
| 50 | + config SEAN_WS2812B_LED_NUMS |
| 51 | + int "Number of LEDs" |
| 52 | + default 5 |
| 53 | + help |
| 54 | + Set the number of LEDs on the WS2812B strip. |
| 55 | + |
| 56 | + config SEAN_WS2812B_USING_DEMO |
| 57 | + bool "Enable demo examples" |
| 58 | + default n |
| 59 | + help |
| 60 | + Enable demo examples for WS2812B. |
| 61 | + |
| 62 | +endif |
0 commit comments