SpaceControl DLL
Version 2.8.9
API documentation for the SpaceControl 3D input devices
|
These functions are used to set the brightness and color of all LEDs. More...
Functions | |
ScStatus | scSetLeds (int devIdx, int *redP, int *greenP, int *blueP) |
Sets and retrieves the brightness of the device's blue LEDs. More... | |
ScStatus | scGetLed (int devIdx, int ledNo, int *brightnessP) |
Gets the brightness of a single LED. More... | |
ScStatus | scSetLed (int devIdx, int ledNo, int *brightnessP) |
Sets and retrieves the brightness of a single LED. More... | |
ScStatus | scGetLedsEx (int devIdx, char brightness[LED_NUM]) |
Gets the brightnesses of all LEDs. More... | |
ScStatus | scSetLedsEx (int devIdx, char brightness[LED_NUM]) |
Sets and retrieves the brightness of all LEDs. More... | |
These functions are used to set the brightness and color of all LEDs.
ScStatus scGetLed | ( | int | devIdx, |
int | ledNo, | ||
int * | brightnessP | ||
) |
Gets the brightness of a single LED.
Example:
devIdx | the index of the device to be requested |
ledNo | the index of the requested LED (0..32) |
brightnessP | brightness of the requested LED |
References LED_NUM, SC_COMMUNICATION_ERROR, SC_OK, SC_PARAMETER_OUT_OF_RANGE, and SC_WRONG_DEVICE_INDEX.
ScStatus scGetLedsEx | ( | int | devIdx, |
char | brightness[LED_NUM] | ||
) |
Gets the brightnesses of all LEDs.
Example:
devIdx | the index of the device to be requested |
brightness | buffer with the 33 brightness values (0..15 each) |
References LED_NUM, SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
ScStatus scSetLed | ( | int | devIdx, |
int | ledNo, | ||
int * | brightnessP | ||
) |
Sets and retrieves the brightness of a single LED.
Example:
devIdx | the index of the device the data is to be set |
ledNo | the number of the LED to be set (0..32) |
brightnessP | brightness the LED is to be set to (0..15) |
References LED_NUM, MAX_BRIGHTNESS, MIN_BRIGHTNESS, SC_COMMUNICATION_ERROR, SC_OK, SC_PARAMETER_OUT_OF_RANGE, and SC_WRONG_DEVICE_INDEX.
ScStatus scSetLeds | ( | int | devIdx, |
int * | redP, | ||
int * | greenP, | ||
int * | blueP | ||
) |
Sets and retrieves the brightness of the device's blue LEDs.
Hint: There is an optimization done in the daemon: The daemon stores the last set brightness and sends a new brightness to the device only in case the brightness has changed. But, there is a special case in the GUI where it is necessary to really set the brightness even if the brightness values are the same as before. This can be achieved by adding the value of 20 (FORCE_SET_BRIGHTNESS) to the wanted value (of course this is an unaesthetic workaround and should be replaced by an extra parameter). Example:
devIdx | the index of the device the data is to be set |
redP | brightness of the red LEDs (this parameter is obsolete and will be ignored) |
greenP | brightness of the green LEDs (this parameter is obsolete and will be ignored) |
blueP | brightness of the blue LEDs |
References FORCE_SET_BRIGHTNESS, MIN_BRIGHTNESS, NO_BRGHT_CHANGE, SC_COMMUNICATION_ERROR, SC_OK, SC_PARAMETER_OUT_OF_RANGE, and SC_WRONG_DEVICE_INDEX.
ScStatus scSetLedsEx | ( | int | devIdx, |
char | brightness[LED_NUM] | ||
) |
Sets and retrieves the brightness of all LEDs.
Example:
devIdx | the index of the device to be requested |
brightness | buffer with the 33 brightness values (0..15 each or NO_BRGHT_CHANGE) |
References LED_NUM, MIN_BRIGHTNESS, NO_BRGHT_CHANGE, SC_COMMUNICATION_ERROR, SC_OK, SC_PARAMETER_OUT_OF_RANGE, and SC_WRONG_DEVICE_INDEX.
Copyright (c) SpaceControl GmbH & Co. KG, Am Technologiepark 10, D-82229 Seefeld |