-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRGB.h
More file actions
22 lines (14 loc) · 863 Bytes
/
RGB.h
File metadata and controls
22 lines (14 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef __RGB_H
#define __RGB_H
#include "main.h"
#define Hight_Data ( 64 ) //1 ??????
#define Low_Data ( 36 ) //0 ??????
#define Reste_Data ( 80 ) //80 ?????????
#define Led_Num ( 4 ) //WS2812???
#define Led_Data_Len ( 24 ) //WS2812????,????24???
#define WS2812_Data_Len (Led_Num * Led_Data_Len) //ws2812??????????
//uint16_t RGB_buffur[Reste_Data + WS2812_Data_Len] = { 0 }; //??????
void WS2812_Display_1(uint32_t Color, uint16_t num);
void WS2812_Display_2( uint8_t red, uint8_t green, uint8_t blue,uint16_t num);
void WS2812_Number_4(uint32_t Color1,uint32_t Color2,uint32_t Color3,uint32_t Color4);//?????????,???????????????
#endif