Giter Site home page Giter Site logo

stm32f103_ws281x's Introduction

STM32F103_WS281x

[TOC]

普通IO方式驱动

利用普通io模拟WS281x的通信时序

SPI_DMA方式驱动

通过硬件SPI8位数据模拟WS281x的一位数据,并通过DMA的方式将数据从内存传输到外设。

11100000 0XE0 WS281X的0码

11111000 0XF8 WS281X的1码

PWM_DMA方式驱动

将pwm频率设为800k,通过更改输出比较寄存器CCR的值来更改占空比。

Example文件夹

文件夹中提供了两个实际应用案例

  1. 通过串口指令控制LED灯
  2. 通过CAN指令控制LED灯(为了便于单机测试,这里使用串口发送,CAN回环模式转发的方式实现。)

stm32f103_ws281x's People

Contributors

apex-yuan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.