当前位置:网站首页>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 :
边栏推荐
- 3 ring kill 360 security guard process
- API data interface for announcement of Hong Kong listed companies
- `Thymeleaf`模板引擎全面解析
- Six stones Management: garbage dump effect: if you don't manage your work, you will become a garbage dump
- R语言实战应用精讲50篇(二十三)-贝叶斯理论重要概念: 可信度Credibility, 模型Models, 和参数Parameters
- Go语言三个高效编程的技巧
- 兴业证券靠谱吗?开证券账户安全吗?
- Halcon draw area into picture
- Common sense knowledge points
- 阿里OSS对象存储服务
猜你喜欢

How to solve the problem that iterative semi supervised training is difficult to implement in ASR training? RTC dev Meetup
![[deep learning] storage form of nchw, nhwc and chwn format data](/img/4f/4478d96132eb2547f6ec09ae49639e.jpg)
[deep learning] storage form of nchw, nhwc and chwn format data

MySQL日志管理、备份与恢复

Method after charging the idea plug-in material theme UI
![Maximum path sum in binary tree [handle any subtree, then handle the whole tree]](/img/d0/91ab1cc1851d7137a1cab3cf458302.png)
Maximum path sum in binary tree [handle any subtree, then handle the whole tree]

leetcode.12 --- 整数转罗马数字

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

不要小看了积分商城,它的作用可以很大

Bert-whitening 向量降维及使用

P2PDB 白皮书
随机推荐
How to solve the problem that iterative semi supervised training is difficult to implement in ASR training? RTC dev Meetup
在宇宙的眼眸下,如何正确地关心东数西算?
10_ Those high-profile personal signatures
Detailed explanation of redis data types
R language constructs regression model diagnosis (normality is invalid), performs variable transformation, and uses powertransform function in car package to perform box Cox transform to normality on
左手代码,右手开源,开源路上的一份子
P2pdb white paper
个人如何开户炒股 炒股开户安全吗
Data sharing between laravel lower views
09_ An efficient memory method
Kunpeng arm server compilation and installation paddlepaddle
leetcode.12 --- 整数转罗马数字
ESP32系列--ESP32各个系列对比
10_那些格调很高的个性签名
09_一种比较高效的记忆方法
ES mapping之keyword;term查詢添加keyword查詢;更改mapping keyword類型
作为一名开发者,对你影响最深的书籍是哪一本?
第八章 操作位和位串(四)
Development of digital Tibetan product system NFT digital Tibetan product system exception handling source code sharing
Brief discussion on the implementation framework of enterprise power Bi CI /cd