登录
首页 » c » W2812B

W2812B

于 2023-08-04 发布 文件大小:4.96 kB
0 106
下载积分: 2 下载次数: 1

代码说明:

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) {

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • DTC-kong-zhi
    直接转矩控制算法的实现及其相关设置配置 (DTC control method)
    2014-11-22 14:16:49下载
    积分:1
  • XML学习
     public Turntable()        {            InitializeComponent();            int angle = 5029;            for (int i = 0; i < 16; i )            {                angle = 22;                _ListAngle.Add(angle);            }        }        ///         /// 保存八个角度        ///         List _ListAngle = new List();        ///         /// 产生随机数        ///         Random _Random = new Random();        int _Index = 0;        int _OldAngle = 0;        private void btnStartTurntable_Click(object sender, RoutedEventArgs e)        {            btnStartTurntable.IsEnabled = false;            _Index = _Random.Next(0, 16);            //_Index = 2;            Storyboard sb = (Storyboard)this.FindResource("zhuandong");            sb.Completed -= this.sb_Completed;            sb.Completed = new EventHandler(sb_Completed);            ((SplineDoubleKeyFrame)((DoubleAnimationUsingKeyFrames)sb.Children[0]).KeyFrames[0]).Value = _OldAngle;            ((SplineDoubleKeyFrame)((DoubleAnimationUsingKeyFrames)sb.Children[0]).KeyFrames[3]).Value = _ListAngle[_Index];            //((SplineDoubleKeyFrame)((DoubleAnimationUsingKeyFrames)sb.Children[0]).KeyFrames[3]).Value = 5218;            sb.Begin();        }        void sb_Completed(object sender, EventArgs e)        {            DispatcherTimer dt = new DispatcherTimer();            dt.Interval = TimeSpan.FromSeconds(0.3);            dt.Tick = delegate             {                dt.Stop();                _OldAngle = (_ListAngle[_Index] % 360);                btnStartTurntable.IsEnabled = true;                AwardProcess(GetAward(_ListAngle[_Index]));            };            dt.Start();        }        public delegate void AwardDelegate(Award award);        ///         /// 返回转到的奖项信息        ///         public event AwardDelegate AwardProcess;        private Award GetAward(int angle)        {
    2014-08-01下载
    积分:1
  • STM32超声波
    STM32f103ZET6控制超声波测距模块,通过串口显示(STM32f103ZET6 controls the ultrasonic ranging module, which is displayed through serial port.)
    2019-05-17 10:00:25下载
    积分:1
  • 用栈实现表达式求值的CPP
    这个代码需要一个有效的表达式作为输入,并计算其结果。它目前有2个变量的支持,但它可以很容易地扩展,通过在代码中添加一些额外的变量;
    2022-07-01 11:14:45下载
    积分:1
  • gesture-system
    目前已有的手部运动跟踪系统大多在一定程度上限制了人体运动自由. 基于此, 提出一种无线、 可穿戴、 无障碍的腕关节、 指关节运动跟踪系统. 在人体每个手指甲上粘贴一轻小永磁体, 用以产生标示腕关节、指关节运动的信号 若干磁传感器置于手腕处的电子腕带上, 作为标示信号( 磁信号) 检测器. 当腕关节、 指关 节运动时, 永磁体在各传感器所在位置处的合成磁场发生变化, 传感器对该磁场信号进行测量, 所检测到的磁场信号送入手部姿势估计器, 估计器基于系统数学模型计算手部姿势, 从而实现对手部运动的跟踪.(Most of the existing hand movement tracking system to a certain extent limited the freedom of human motion. This paper presents a wireless, wearable, accessible wrist, knuckles motion tracking system. In each fingernail on the human body Paste a light small permanent magnet to produce marked the wrist, referring to the signal of the joint movement the number of magnetic sensors placed in the wrist at the electronic wristband, as marked signal (magnetic signal) detector. when the wrist, knuckles campaign , the permanent magnet in the magnetic field of the sensor location at changes in the sensors of the magnetic signal measurement, the detected magnetic field signal sent from the start with the Ministry of posture is estimated, the estimator based on the mathematical model to calculate the hand position in order to achieve of hand movement tracking.)
    2020-06-30 07:40:02下载
    积分:1
  • gmm-4.2.tar
    Generic templates of algorithms for sparse matrixs
    2013-07-12 10:49:08下载
    积分:1
  • fs
    说明:  一个简单的linux文件系统,包含文件的读、写、创建、删除,文件夹的创建、删除等功能(linux file system linux file system linux file system linux file system )
    2015-05-04 16:57:17下载
    积分:1
  • caiji
    利用STC12C5a16ad单片机采集信号,并做AD转换后通过串口发送出来。(SCM signal acquisition using STC12C5a16ad and do AD conversion sent out through the serial port.)
    2011-04-30 16:20:30下载
    积分:1
  • DataGridView控件用法合集11
    说明:  DataGridView控件属性及用法大全(DataGridView Control Properties and Usage)
    2020-06-16 03:20:02下载
    积分:1
  • VisualC++-MATLAB
    《VisualC++-MATLAB图像处理与识别实用案例精选》书的源代码,里面各个章节的程序例子都有("VisualC- MATLAB image processing and recognition practical case Showcase" on the source code, inside the various sections of the procedures examples)
    2007-05-10 19:22:38下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载