Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions peripherals/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ source "$PKGS_DIR/packages/peripherals/rplidar/Kconfig"
source "$PKGS_DIR/packages/peripherals/as608/Kconfig"
source "$PKGS_DIR/packages/peripherals/rc522/Kconfig"
source "$PKGS_DIR/packages/peripherals/ws2812b/Kconfig"
source "$PKGS_DIR/packages/peripherals/ws2812/Kconfig"
source "$PKGS_DIR/packages/peripherals/rtc/Kconfig"
source "$PKGS_DIR/packages/peripherals/multi_rtimer/Kconfig"
source "$PKGS_DIR/packages/peripherals/max7219/Kconfig"
Expand Down
31 changes: 31 additions & 0 deletions peripherals/ws2812/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

# Kconfig file for package ws2812
menuconfig PKG_USING_WS2812
bool "ws2812: WS2812/WS2812B RGB LED driver using SPI"
default n

if PKG_USING_WS2812

config PKG_WS2812_PATH
string
default "/packages/peripherals/ws2812"

choice
prompt "Version"
help
Select the package version

config PKG_USING_WS2812_V100
bool "v1.0.0"

config PKG_USING_WS2812_LATEST_VERSION
bool "latest"
endchoice

config PKG_WS2812_VER
string
default "v1.0.0" if PKG_USING_WS2812_V100
default "latest" if PKG_USING_WS2812_LATEST_VERSION

endif

36 changes: 36 additions & 0 deletions peripherals/ws2812/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "ws2812",
"description": "WS2812/WS2812B RGB LED driver package for RT-Thread, using SPI (poll/DMA/BDMA).",
"description_zh": "基于 SPI 的 RT-Thread WS2812/WS2812B RGB LED 驱动软件包,支持轮询/DMA/BDMA 传输。",
"enable": "PKG_USING_WS2812",
"keywords": [
"ws2812",
"ws2812b",
"led",
"rgb"
],
"category": "peripherals",
"author": {
"name": "moment-NEW",
"email": "cghdudu@qq.com",
"github": "moment-NEW"
},
"license": "Apache-2.0",
"repository": "https://github.com/moment-NEW/ws2812",
"icon": "unknown",
"homepage": "https://github.com/moment-NEW/ws2812#readme",
"doc": "unknown",
"site": [
{
"version": "v1.0.0",
"URL": "https://github.com/moment-NEW/ws2812/archive/refs/tags/v1.0.0.zip",
"filename": "ws2812-1.0.0.zip"
},
{
"version": "latest",
"URL": "https://github.com/moment-NEW/ws2812.git",
"filename": "",
"VER_SHA": "master"
}
]
}