Documentation
DMX_FadeChannelDelayed
boolean DMX_FadeChannelDelayed (int $InstanceID, int $Channel, int $Value, float $FadeTime, float $DelyTime)
Parameters
InstanceID | ID of the device to be switched |
Channel | 0 = all module channels, 1 – 512 depending on configuration |
Value | 0-255 |
FadeTime | Time in seconds |
DelyTime | Time in seconds |
Returns
If the command succeeds, it returns TRUE, otherwise FALSE.
Description
Dims the Channel of the device with ID InstanceID to Value with a certain FadeTime. You can specify a DelayTime__ after which the dimming starts.
When no delay time is set this command will abort all pending fading which were queued by DMX_FadeChannelDelayed. This allows creating a new queue of fadings. This hint is only relevant when using fadings with delay time
Example
//Dims a module completely down and back up.
DMX_FadeChannel(12345, 0, 255, 5.0); //Dim all channels of the module to 255 in 2,5 sec
DMX_FadeChannelDelayed(12345, 0, 0, 2.5, 5); //Dim all channels of the module to 0 in 2,5sec., after a delay of 5sec.