freesmartphone.org LED Interface
Description
This interface provides access to a LED device.
Namespace
org.freesmartphone.Device.LED
Methods
Signals
None
Properties
None
Errors
None
Methods
SetBrightness ( i )
Description: Set the brightness level.
Parameters:*
i: brightness The brightness level in percent (0-100).
SetBlinking ( ii )
Description: Start blinking.
Implementation Note
This requires the Linux 2.6 LED class trigger ‘timer’ to be available.
Parameters:*
i: on_duration Duration of being lit in milliseconds.
i: off_duration Duration of being unlit in milliseconds.
BlinkSeconds ( iii )
Description: Blink the LED for a number of seconds.
Implementation Note
This requires the Linux 2.6 LED class trigger ‘timer’ to be available.
Parameters:*
i: seconds The amount of time (in seconds) to blink this LED.
i: on_duration Duration of being lit in milliseconds.
i: off_duration Duration of being unlit in milliseconds.
SetNetworking ( ss )
Description: Start visualizing the network status.
Implementation Note
This requires the Linux 2.6 LED class trigger ‘netdev’ to be available.
Parameters:*
s: interface The interface to visualize.
s: mode A string combined of elements describing the visualization mode. Valid elements are:
- “link”: Visualizes the interface link status (up = lit),
- “rx”: Visualizes the interface receiving data,
- “tx”: Visualizes the interface transmitting data.