
USB Controlled Multicolor Signal Beacon User Manual
28
③
NE_SetLight
Item
Description
Name
int NE_SetLight(LEDColors color, LEDPatterns ledPattern)
Overview
Specify the LED color and LED pattern and turn on this product.
The alarm maintains its current state.
Argument
color
:
Specifies the LED color to control.
For details, refer to “
☞
7.3(5-
1) LED unit color to be controlled.”
ledPattern
:
Specifies the LED pattern.
For details, refer to “
☞
7.3(5-2) LED
pattern”.
Return Value
If successful, returns 0.
If an error occurs, a value less than 0 is returned.
Refer
to “
☞
7.3
(6) Error” for details.
Precautions
It is necessary to call “NE_OpenDevice” before calling this function.
Program
Example
int open_state, send_state;
open_state = NE_OpenDevice();
if(open_state == 0){
send_state = NE_SetLight (LEDColors.Red, LEDPatterns. Continuous);
/* RedON */
}
NE_CloseDevice();