1 Star 0 Fork 7

cswft/WS2812FX_C_Lang

forked from dma/WS2812FX_C_Lang 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ws2812_driver.h 906 Bytes
一键复制 编辑 原始数据 按行查看 历史
dma 提交于 2020-10-25 18:29 . 根据WS2812FX的接口适配驱动
#ifndef __WS2812_DRIVER_H
#define __WS2812_DRIVER_H
#include <stdint.h>
#define WS2812_LED_NUMS 60
extern uint32_t ws2812_buf[];
extern uint16_t ws2812_numBytes;
void ws2812_init(void);
void ws2812_reset(void);
void ws2812_write_byte(uint8_t dat);
void ws2812_write_color_rgb(uint8_t *color);
void ws2812_write_color_u32(uint32_t color);
void ws2812_write_all(void);
void ws2812_clear(void);
void ws2812_fill(uint32_t c, uint16_t first, uint16_t count);
void ws2812_set_color_rgbw(uint32_t n, uint8_t r, uint8_t g, uint8_t b, uint8_t w);
void ws2812_set_color_u32(uint32_t n, uint32_t color);
uint8_t *ws2812_getPixels(void);
void ws2812_setBrightness(uint8_t b);
uint8_t ws2812_getBrightness(void);
uint16_t ws2812_numPixels(void);
uint32_t ws2812_getPixelColor(uint16_t n);
uint8_t ws2812_sine8(uint8_t x);
uint8_t ws2812_gamma8(uint8_t x);
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/jz0211/ws2812fx_c_lang.git
[email protected]:jz0211/ws2812fx_c_lang.git
jz0211
ws2812fx_c_lang
WS2812FX_C_Lang
master

搜索帮助