|
SpaceControl DLL
Version 2.8.9
API documentation for the SpaceControl 3D input devices
|
These functions handle the brightness of the LCD and are used to write strings to it. More...
Functions | |
| ScStatus | scGetLcd (int devIdx, int *brightnessP) |
| Retrieves the LCD's brightness. More... | |
| ScStatus | scSetLcd (int devIdx, int *brightnessP) |
| Sets and retrieves the LCD's brightness Example: More... | |
| ScStatus | scSetLcdColor (int devIdx, int *redP, int *greenP, int *blueP) |
| Sets and retrieves the LCD's background color. More... | |
| ScStatus | scSetDsplString (int devIdx, int row, char text[MAX_DSPL_STR_LEN], int *charNumP) |
| Sets a line of text into the display. More... | |
These functions handle the brightness of the LCD and are used to write strings to it.
| ScStatus scGetLcd | ( | int | devIdx, |
| int * | brightnessP | ||
| ) |
Retrieves the LCD's brightness.
Example:
| devIdx | the index of the device to be requested |
| brightnessP | actual brightness (1..15) |
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
| ScStatus scSetDsplString | ( | int | devIdx, |
| int | row, | ||
| char | text[MAX_DSPL_STR_LEN], | ||
| int * | charNumP | ||
| ) |
Sets a line of text into the display.
The max. length is defined by MAX_DSPL_STR_LEN (= 40).
Example:
| devIdx | the index of the device to be used |
| row | the line the text is to be put into (0..6) |
| text | null terminated string with the text |
| charNumP | *charNumP: the number of characters actually written |
References MAX_DSPL_STR_LEN, SC_COMMUNICATION_ERROR, SC_OK, SC_PARAMETER_OUT_OF_RANGE, and SC_WRONG_DEVICE_INDEX.
| ScStatus scSetLcd | ( | int | devIdx, |
| int * | brightnessP | ||
| ) |
Sets and retrieves the LCD's brightness
Example:
| devIdx | the index of the device to be requested |
| brightnessP | actual brightness (1..15) |
References MAX_BRIGHTNESS, MIN_BRIGHTNESS, SC_COMMUNICATION_ERROR, SC_OK, SC_PARAMETER_OUT_OF_RANGE, and SC_WRONG_DEVICE_INDEX.
| ScStatus scSetLcdColor | ( | int | devIdx, |
| int * | redP, | ||
| int * | greenP, | ||
| int * | blueP | ||
| ) |
Sets and retrieves the LCD's background color.
This function is for testing purposes only and sets the LCD to a monochrome color. The color values are given as RGB in the range 0 .. 255. But, the display does not have the full color range, the values are mapped as follows automatically:
| devIdx | the index of the device to be requested |
| redP | red part of the color (0..255) |
| greenP | green part of the color (0..255) |
| blueP | blue part of the color (0..255) |
References MAX_COLOR_VAL, MIN_COLOR_VAL, 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 |