Port.N.leds
Set the status of all three LEDs
Syntax: see Call Structure
{ "method": "cbrx_connection_set", "params": [ connection-handle, "Port.N.leds", Value ] } |
Parameter | Description |
---|---|
connection-handle | The Connection Handles as an integer |
N | Port Number |
Value | The value you wish to set for the key |
Value
A 24 bit numeric value consisting of the individual LED settings as 8 bit values shifted and OR’ed together. i.e. led1 | (led2 << 8) | (led3 << 16), so with led1 and led2 as zero, and led3 being 0b10101010 (decimal 170), the result should be 11,141,120 decimal.
On a ThunderSync3, 255 is Green, 65,280 is red, 16,711,680 is Yellow.
On a ModIT, Blue is used instead of Yellow, but you can of course mix colours into any RGB mix.
Returns:
{ "result": true } |
Errors
If there is an error in the API method then a JSON-RPC Error Object will be returned.
Example
{
"id": 0,
"jsonrpc": "2.0",
"method": "cbrx_connection_set",
"params": [
7654,
"Port.1.leds",
11193404
]
}