diff --git a/peripherals/Kconfig b/peripherals/Kconfig index aea30f2048..3773e98773 100644 --- a/peripherals/Kconfig +++ b/peripherals/Kconfig @@ -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" diff --git a/peripherals/ws2812/Kconfig b/peripherals/ws2812/Kconfig new file mode 100644 index 0000000000..e85bf09fdf --- /dev/null +++ b/peripherals/ws2812/Kconfig @@ -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 + diff --git a/peripherals/ws2812/package.json b/peripherals/ws2812/package.json new file mode 100644 index 0000000000..2d9efb9662 --- /dev/null +++ b/peripherals/ws2812/package.json @@ -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" + } + ] +}