Port.N.RGB
Set RGB colour of ModIT LEDs.
Syntax: see Call Structure
{ "method": "cbrx_connection_set", "params": [ connection-handle, "Port.N.RGB", 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
Colour value can either be an integer (where you must supply full RGBA), or a string. For a string, you can specify it as RGB, RGBA, RRGGBB or RRGGBBAA. Much like you can with an HTML colour. For example, use “FF0000” or “F00” for red, “FFFFFF” for white and so on. Optionally supply the alpha (intensity) digits, so “FFFFFF80” for half bright white.
Returns:
{ "result": true } |
Errors
If there is an error in the API method then a JSON-RPC Error Object will be returned.
Example
Copy
{
"id": 0,
"jsonrpc": "2.0",
"method": "cbrx_connection_set",
"params": [
7654,
"Port.1.RGB",
"ff08"
]
}