bool SetLEDState(LEDSetting, int, int, int, int, string)

Change the mode or color of the LED.

Security

Trust Level Required: Full Trust

Parameters

Name Description
LEDSetting LEDSetting
The current LED State
displayRule int
The DisplayRule value for the LEDState
red int
RGB value for red LED
green int
RGB value for green LED
blue int
RGB value for blue LED
devName (Optional) string
The name of the device. If not supplied, the first matching configured device of this type will be used

Return

True in the event that the given values were set succesfully. False otherwise.

Remarks

Examples

				
function setLEDState() {
	var displayRule = parseInt(document.getElementById('displayRule').value);
	var red = parseInt(document.getElementById('red').value);
	var green = parseInt(document.getElementById('green').value);
	var blue = parseInt(document.getElementById('blue').value);
	var ledState = document.getElementById('ledState').selectedIndex;
	updateResults('Success: ' + KioOmronEnviroSensor.SetLEDState(ledState, displayRule, red, green, blue));
}

	

Requirements

KioWare for Windows version 8.16 or greater.