W2812B
代码说明:
16 LED2_BYTE_Buffer[24]; //·¢ËÍÊý×黺´æ //u32 LED2_WORD_Buffer[8]; u8 rld= 0x9f; u8 gld= 0x9f; u8 bld= 0x9f; u32 *RGB;//ÑÕÉ«ÁбíÊý×é u32 len; u32 P1,P2,P1_data,P2_data,liang_data=0,chuzhi1,chuzhi2; u32 liang=0x00ffffff; u32 mie =0x00000000; u32 color2812[]= { 0x00ffffff,0x00ffff85,0x00ffffaa,0x00ffff9b,0x00ffff8c,0x00ffff7d,0x00ffff76,0x00ffff6f,0x00ffff66,0x00ffff5f, 0x00ffff50,0x00ffef41,0x00ffdf32,0x00ffcf23,0x00ffaf16,0x00ff8f0f,0x00ff6f0a,0x00ff5f05,0x00ff4f02,0x00ff3f00, 0x00ef3700,0x00cf3000,0x00af2f00,0x009f23f00,0x007f2000,0x005f1700,0x003f1000,0x001f0800,0x000f0300,0x00000000, // 0x00ef3f00,0x00ef3f00,0x00ef3f00,0x00ef3f00,0x00ef3f00,0x00ef3f00,0x00ef3f00,0x00ef3f00,0x00ef3f00,0x00ef3f00, }; void out_RGB(u16 data_Max_Length,u16 colorwidth); void WS2812B_TIM_init(void) {
下载说明:请别用迅雷下载,失败请重下,重下不扣分!