当前位置:网站首页>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 :
边栏推荐
猜你喜欢
![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]

v-for 中 key的作用和原理

Don't underestimate the integral mall. It can play a great role

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

The "little giant" specialized in special new products is restarted, and the "enterprise cloud" digital empowerment

入行 4 年,跳槽 2 次,我摸透了软件测试这一行

A review of text contrastive learning

港股上市公司公告 API 数据接口

Brief discussion on the implementation framework of enterprise power Bi CI /cd

Method after charging the idea plug-in material theme UI
随机推荐
leetcode:1504. 统计全 1 子矩形的个数
Mots clés pour la cartographie es; Ajouter une requête par mot - clé à la requête term; Changer le type de mot - clé de cartographie
打败 二叉树!
Port conflict handling method for tongweb
从pair到unordered_map,理论+leetcode题目实战
MySQL log management, backup and recovery
Bert whitening vector dimension reduction and its application
Keyword of ES mapping; Term query add keyword query; Change mapping keyword type
C language ---18 function (user-defined function)
09_ An efficient memory method
CONDA and pip commands
3 ring kill 360 security guard process
Solution of channel management system for food and beverage industry: realize channel digital marketing layout
09_一种比较高效的记忆方法
Win10 system problems
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
Method of establishing unity thermodynamic diagram
SSH keygen configuration does not require entering a password every time
Database considerations
阿里OSS对象存储服务