您当前的位置:五五电子网电子知识单片机-工控设备51单片机Dmx512灯控制器程序 正文
Dmx512灯控制器程序

Dmx512灯控制器程序

点击数:7448 次   录入时间:03-04 12:04:03   整理:http://www.55dianzi.com   51单片机
                                {
                                     Color_Set(i,i,Color_Table[Color_Sort][0]);
                                     i++;
                                }
                                Fade=0xFF-Fade_Adj*8;
                                for(k=0;k<ixels+1;k++)
                                {
                                     Color_Set(i,i,Color_Table[Color_Sort][1]);
                                     i++;
                                }
                          }
                          _nop_();
                          Dmx_Timer = 8;
                          Send_Dmx_Data();
                          break;
                     case 9 :                      //fade change
                          Pixels_Group = 2;
                          Fade_Time++;
                          if(Fade_Time > Run_Speed)
                          {
                             Fade_Time = 0;
                             if(R_data1 > R_data2)
                                 R_data1--;
                             if(R_data1 < R_data2)
                                 R_data1++;
                             if(G_data1 > G_data2)
                                 G_data1--;
                             if(G_data1 < G_data2)
                                 G_data1++;
                             if(B_data1 > B_data2)
                                 B_data1--;
                             if(B_data1 < B_data2)
                                 B_data1++;
                             Work_Data_Buff[0] = R_data1;
                             Work_Data_Buff[1] = G_data1;
                             Work_Data_Buff[2] = B_data1;
                             Send_Dmx_Data();
                          }

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51]  下一页


本文关键字:控制器  程序  51单片机单片机-工控设备 - 51单片机

《Dmx512灯控制器程序》相关文章>>>