摘要
为了控制农机LED呈现多种灯光运行模式。使用STM32的SPI外设并配合DMA传输的方式,将SPI总线的MOSI信号转换为WS2812所需要的输入信号。农机LED光源实现在流水灯、呼吸灯、常亮、闪烁等运行中的自由模式切换。可通过LED运行模式判断农机当前工作状态。
In order to control the agricultural machinery LED presents a variety of light running modes.Using SPI peripheral of STM32 and DMA transmission,the MOSI signal of SPI bus is converted to the input signal required by WS2812.Agricultural LED light source realizes free mode switch in running water light,breathing light,steady on,flashing and so on.The current working state of agricultural machinery can be judged by LED operation mode.
作者
关宇晟
GUAN Yusheng(Guangxi Huiyun Information Technology Co.,LTD.,Nanning 530007,China)
出处
《拖拉机与农用运输车》
2022年第5期74-78,共5页
Tractor & Farm Transporter