Led Property

bool Led[int lednum]

Summary

This property allows you to control or retrieve the state of the two LED's built into the ETH32 device.

Parameters

  • lednum - Identifies the LED (0 or 1) to control or inspect.

Value

This property is a boolean type. A true value means the LED is on and a false value means the LED is off.

Example
Eth32 dev = new Eth32();

try
{
	// .... Your code that establishes a connection here
	
	// Determine whether LED 0 is on or off
	if(dev.Led[0])
	{
		// LED is on
	}
	else
	{
		// LED is off
	}
	
	// Turn on LED 1
	dev.Led[1]=true;
}
catch (Eth32Exception e)
{
	// Handle Eth32 errors here
}