文件名称:至简设计法--特效呼吸灯
介绍说明--下载内容均来自于网络,请自行研究使用
特效呼吸灯
工程说明
本模块的功能要求是,实现8个灯前1s慢慢变暗,后1s慢慢变亮,不断重复以上操作。
案例补充说明
呼吸灯效果的LED每时每刻都在以不同的功率工作,以不同的亮度值拟合亮度变化,从而形成非常平顺柔和的灯光特效。亮度变化实际上是通过占空比的变化周期来确定的。占空比通过cnt2的计数来变换,而每次变化为1ms,因此PWM的周期是1ms。(Special effects breathing lamp
Engineering descr iption
The functional requirements of this module is to achieve the 8 lights before 1s slowly darken, after the 1s slowly brighten, and constantly repeat the above operation.
Case Supplement
The LED of the breathing lamp works at different power at different times, fitting brightness changes with different brightness values, so as to form very smooth and soft lighting effects. The brightness changes are actually determined by the duty cycle of the cycle. The duty cycle is changed by the count of CNT2, and each time the change is 1ms, the period of the PWM is 1ms.)
工程说明
本模块的功能要求是,实现8个灯前1s慢慢变暗,后1s慢慢变亮,不断重复以上操作。
案例补充说明
呼吸灯效果的LED每时每刻都在以不同的功率工作,以不同的亮度值拟合亮度变化,从而形成非常平顺柔和的灯光特效。亮度变化实际上是通过占空比的变化周期来确定的。占空比通过cnt2的计数来变换,而每次变化为1ms,因此PWM的周期是1ms。(Special effects breathing lamp
Engineering descr iption
The functional requirements of this module is to achieve the 8 lights before 1s slowly darken, after the 1s slowly brighten, and constantly repeat the above operation.
Case Supplement
The LED of the breathing lamp works at different power at different times, fitting brightness changes with different brightness values, so as to form very smooth and soft lighting effects. The brightness changes are actually determined by the duty cycle of the cycle. The duty cycle is changed by the count of CNT2, and each time the change is 1ms, the period of the PWM is 1ms.)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
至简设计法--特效呼吸灯.docx