owiButtonSetLED (Function) |
Top Previous Next |
The iButton reader is supplied with an LED that can easily be used to inform the user if the iButton placed in the reader is valid or not. Example: fast blinking = access, slow blinking = no access. The LED is controlled with the owiButtonEnableLED and owiButtonSetLed functions.
The owiButtonSetLED controls the state of the LED placed inside the iButton reader. Before the state can be controlled, owiButtonEnableLED must be set to "on".
Please notice: When the RTCU device has been connected to the RTCU IDE, the user may experience a delay before the LED is ready for use. This is due to a timeout when disconnecting from the RTCU- IDE. A delay may also be experienced when the owiButtonEnableLED is set to "on" and the user connects the RTCU device to the RTCU IDE.
Input: state : BOOL The new state of the LED in the iButton reader.
Returns: None.
Declaration: FUNCTION owiButtonSetLed;
Example: INCLUDE rtcu.inc |