[TOC]
利用普通io模拟WS281x的通信时序
通过硬件SPI8位数据模拟WS281x的一位数据,并通过DMA的方式将数据从内存传输到外设。
11100000 0XE0 WS281X的0码
11111000 0XF8 WS281X的1码
将pwm频率设为800k,通过更改输出比较寄存器CCR的值来更改占空比。
文件夹中提供了两个实际应用案例
- 通过串口指令控制LED灯
- 通过CAN指令控制LED灯(为了便于单机测试,这里使用串口发送,CAN回环模式转发的方式实现。)
This project forked from apex-yuan/stm32f103_ws281x
STM32 驱动 WS281x灯珠(普通IO SPI+DMA PWM+DMA)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.