MindSDK_MM32F5270/demo_apps/basic/ws2812b_spi_dma
Yilin Sun 3977144e90
Initial MM32F527x commit.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2023-03-27 21:54:40 +08:00
..
build Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
board_init.c Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
board_init.h Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
clock_init.c Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
clock_init.h Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
main.c Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
pin_init.c Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
pin_init.h Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
readme.md Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00

ws2812b_spi_dma

实验过程

  • 初始化 ws2812b 实例。
  • 设置 ws2812b 显示颜色。
  • 更新 ws2812b 缓冲区。
  • 开始更新 ws2812b 颜色。
  • 等待更新完毕。
  • 循环修改并刷新 ws2812b 颜色。

实验结果

外接 ws2812b 根据串口信息显示不同颜色。

ws2812b example. WS2812B_COLOR_RED WS2812B_COLOR_GREEN WS2812B_COLOR_BLUE WS2812B_COLOR_RED WS2812B_COLOR_GREEN WS2812B_COLOR_BLUE WS2812B_COLOR_RED WS2812B_COLOR_GREEN WS2812B_COLOR_BLUE WS2812B_COLOR_RED WS2812B_COLOR_GREEN WS2812B_COLOR_BLUE