Repository navigation
[peripherals]: add ws2812 package - #2049
Open
moment-NEW wants to merge 1 commit into
Open
moment-NEW wants to merge 1 commit into
moment-NEW wants to merge 1 commit into
Conversation
Contributor
ws2812b list # 查看各槽灯珠数、SPI 配置频率、亮度、Gamma
ws2812b 2 info # 查看第 2 路设备状态
ws2812b bright 64 # 先降低第 0 路亮度,避免全白时供电过载
ws2812b s FF0000 # 红色通道测试 Gamma:在较低全局亮度下更容易观察
ws2812b gamma off # 不启用 Gamma
ws2812b gamma 28 # 启用 Gamma 2.8(需要编译对应查找表)
ws2812b s red # 固定红色
ws2812b bl # 红/灭交替,默认完整周期 600 Tick
ws2812b br # 绿色呼吸,默认 1000 Tick
ws2812b gr # 红蓝时间渐变,默认 1000 Tick
ws2812b gd # 空间渐变,默认 20 Tick
ws2812b ch # 绿色追逐,默认单步 100 Tick
ws2812b seq # 红/绿/蓝各 500 Tick 依次循环
ws2812b seq r:200 g:300 b:400 # 自定义每步时间
ws2812b colors # 15 种不同的预定义颜色,每色 1000 Tick
ws2812b 1 colors 500 # 第 1 路,每色 500 Tick
ws2812b off # 以 SOLID 方式关闭显示
ws2812b reset # 恢复该槽 Kconfig 初始效果
ws2812b help # 查看完整命令和默认值 |
Author
哈哈!其实我是看到你有fork相关的软件包之后才想起来我做好的软件包还没有推。
当然非常欢迎大佬提出改进意见。也很期待大佬的WS2812驱动 |
Contributor
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test status
others