当前位置:网站首页>Stm32f1 and stm32cubeide programming examples -ws2812b full color LED driver (based on spi+dma)
Stm32f1 and stm32cubeide programming examples -ws2812b full color LED driver (based on spi+dma)
2022-06-24 14:27:00 【Visual intelligence】
WS2812B Full color LED drive ( be based on SPI+DMA)
1、WS2812 Introduce
WS2812/WS2812B LED Use 24 Bits to indicate green 、 Red and blue values .

WS2812 Design with single line communication , The communication protocol is non return to zero coding , Every LED need 24 individual bit The data of , The data goes through a series of LED when , first LED Intercept the beginning of the data 24bit, And pass the rest of the data to the next LED, And so on . Bits on the data line are encoded by high pulses , Then there is the low pulse . The sequence is as follows :

WS2812 It supports high-speed data transmission and its data transmission timing is the same as that of SPI The communication sequence is similar , So you can use STM32 Of SPI Peripheral simulation WS2812 Communication timing .
In the previous article , Yes WS2812 Made a detailed introduction , Please refer to :
边栏推荐
- Virtual machines on the same distributed port group but different hosts cannot communicate with each other
- 10_ Those high-profile personal signatures
- Method of establishing unity thermodynamic diagram
- laravel下视图间共享数据
- ssh-keygen 配置无需每次输入密码
- Development of B2B transaction collaborative management platform for kitchen and bathroom electrical appliance industry and optimization of enterprise inventory structure
- [leetcode] 10. Regular expression matching
- R language plot visualization: the visualization model creates a grid in the classification contour (contour) and meshgrid of the entire data space, in which the distance between each point is determi
- The "little giant" specialized in special new products is restarted, and the "enterprise cloud" digital empowerment
- 从pair到unordered_map,理论+leetcode题目实战
猜你喜欢

业务与技术双向结合构建银行数据安全管理体系
![[learn ZABBIX from scratch] I. Introduction and deployment of ZABBIX](/img/d1/4b21c8049f0377b54a18a9b267432e.png)
[learn ZABBIX from scratch] I. Introduction and deployment of ZABBIX

laravel8使用faker调用工厂填充数据

I have been in the industry for 4 years and have changed jobs twice. I have learned a lot about software testing

【比特熊故事汇】6月MVP英雄故事|技术实践碰撞境界思维
![Generate binary tree according to preorder & inorder traversal [partition / generation / splicing of left subtree | root | right subtree]](/img/f7/8d026c0e4435fc8fd7a63616b4554d.png)
Generate binary tree according to preorder & inorder traversal [partition / generation / splicing of left subtree | root | right subtree]

Explore cloud native databases and take a broad view of future technological development

How to solve the problem that iterative semi supervised training is difficult to implement in ASR training? RTC dev Meetup

Bert whitening vector dimension reduction and its application

【无标题】
随机推荐
[leetcode] 10. Regular expression matching
Idea connection MySQL custom generated entity class code
Linux Installation cenos7 MySQL - 8.0.26
MySQL log management, backup and recovery
Halcon draw area into picture
日常知识科普
IList of PostgreSQL
MySQL日志管理、备份与恢复
Common sense knowledge points
Second, the examinee must see | consolidate the preferred question bank to help the examinee make the final dash
In the eyes of the universe, how to correctly care about counting East and West?
ES mapping之keyword;term查詢添加keyword查詢;更改mapping keyword類型
GO语言并发模型-MPG模型
v-if 和 v-show 的区别
I have been in the industry for 4 years and have changed jobs twice. I have learned a lot about software testing
How to solve the problem that iterative semi supervised training is difficult to implement in ASR training? RTC dev Meetup
高薪程序员&面试题精讲系列115之Redis缓存如何实现?怎么发现热key?缓存时可能存在哪些问题?
[bitbear story collection] June MVP hero story | technology practice collision realm thinking
June training (day 23) - dictionary tree
R语言plotly可视化:使用plotly可视化数据划分后的训练集和测试集、使用不同的形状标签表征、训练集、测试集、以及数据集的分类标签(Display training and test split