Skip to content

Commit d0ea67f

Browse files
godmialRbb666
authored andcommitted
新增 sean_ws2812b 软件包
1 parent ece3366 commit d0ea67f

File tree

3 files changed

+92
-0
lines changed

3 files changed

+92
-0
lines changed

peripherals/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ source "$PKGS_DIR/packages/peripherals/bt_mx02/Kconfig"
8080
source "$PKGS_DIR/packages/peripherals/gc9a01/Kconfig"
8181
source "$PKGS_DIR/packages/peripherals/ikun-485/Kconfig"
8282
source "$PKGS_DIR/packages/peripherals/Servo_sg90/Kconfig"
83+
source "$PKGS_DIR/packages/peripherals/sean_ws2812b/Kconfig"
8384

8485
if RT_VER_NUM > 0x40101
8586
source "$PKGS_DIR/packages/peripherals/spi-tools/Kconfig"

peripherals/sean_ws2812b/Kconfig

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "sean_ws2812b",
3+
"description": "Complete WS2812B LED Strip Driver based on SPI for RT-Thread 4.1.0",
4+
"description_zh": "基于SPI接口的WS2812B灯带驱动软件包,适用于RT-Thread 4.1.0系统。",
5+
"enable": "PKG_USING_SEAN_WS2812B",
6+
"keywords": [
7+
"ws2812b",
8+
"rgb"
9+
],
10+
"category": "peripherals",
11+
"author": {
12+
"name": "godmial",
13+
"email": "[email protected]",
14+
"github": "godmial"
15+
},
16+
"license": "Apache-2.0",
17+
"repository": "https://github.com/godmial/sean_ws2812b.git",
18+
"icon": "https://raw.githubusercontent.com/godmial/sean_ws2812b/main/icon.png",
19+
"homepage": "https://github.com/godmial/sean_ws2812b#readme",
20+
"doc": "https://github.com/godmial/sean_ws2812b#readme",
21+
"site": [
22+
{
23+
"version": "latest",
24+
"URL": "https://github.com/godmial/sean_ws2812b.git",
25+
"filename": "sean_ws2812b.zip",
26+
"VER_SHA": "main"
27+
}
28+
]
29+
}

0 commit comments

Comments
 (0)