Mood_lamp
Modules | Functions
Mood lamp logic

This module consists mood lamp logic algorithmes. More...

Modules

 Mood lamp parameters
 Consists shares of various color schemes in total value.
 

Functions

void rgb_handle ()
 Mood lamp logic handler. More...
 

Detailed Description

This module consists mood lamp logic algorithmes.

Function Documentation

◆ rgb_handle()

void rgb_handle ( )

Mood lamp logic handler.

This function handles one color changing step and destination color changig

Note
This function should be called at regular time intervals \(T=1000000T_{cycle}/(PWM_{max}+1)\) microseconds, where \(T_{cycle}\) - time of one full color flowing, seconds; \(PWM_{max}\) - maximal color output PWM timer walue.