bool Led[int lednum]
This property allows you to control or retrieve the state of the two LED's built into the ETH32 device.
This property is a boolean type. A true value means the LED is on and a false value
means the LED is off.
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
}