Documentation
PJ_SetRGBW
boolean PJ_SetRGBW (int $InstanceID, int $R, int $G, int $B, int $W)
Parameters
InstanceID | ID of the device to be switched |
R | Brightness value 0 (off) to 255 (on, maximum brightness) |
G | Brightness value 0 (off) to 255 (on, maximum brightness) |
B | Brightness value 0 (off) to 255 (on, maximum brightness) |
W | Overall brightness value 0 (off) to 255 (on, maximum brightness) |
Returns
If the command succeeds, it returns TRUE, otherwise FALSE.
Description
Sets an RGB color value with brightness W on the controller with ID InstanceID.
Example
// Switch to yellow at full brightness
PJ_SetRGBW(12345,255,255,0,255);