Public Property Led(ByVal lednum As Long) As Boolean
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.
Private Sub example()
' Set up error handling for this routine
On Error GoTo myerror
Set dev = New Eth32
' .... Your code that establishes a connection here
' Determine whether LED 0 is on or off
If dev.Led(0) Then
' LED is on
Else
' LED is off
End If
' Turn on LED 1
dev.Led(1) = True
Exit Sub
myerror:
MsgBox "ETH32 error: " & dev.ErrorString(Err.Number)
End Sub