« Back to Product

Documentation

DMX_SetRGB

 boolean DMX_SetRGB (int $InstanceID, int $R, int $G, int $B) 

Parameters

InstanceID

ID of the device to be switched

R

Brightness value 0 (off) to 255/65535 (8/16 bit) (on, maximum brightness)

G

Brightness value 0 (off) to 255/65535 (8/16 bit) (on, maximum brightness)

B

Brightness value 0 (off) to 255/65535 (8/16 bit) (on, maximum brightness)

Returns

If the command succeeds, it returns TRUE, otherwise FALSE.

Description

Sends the red, green and blue channels of the ID InstanceID.

Example

// set color to yellow

// 8bit instance
DMX_SetRGB(12345, 255, 255, 0);

// 16bit instance
DMX_SetRGB(12345, 65535, 65535, 0);
Any questions?