LED
Object Hierarchy:
Description:
public class LED :
Device
Represents an LED device.
Content:
Constants:
- public const unowned string EV3_LEFT_GREEN
Device name of the left green LED on the EV3 brick.
- public const unowned string EV3_RIGHT_GREEN
Device name of the right green LED on the EV3 brick.
- public const unowned string EV3_LEFT_RED
Device name of the left red LED on the EV3 brick.
- public const unowned string EV3_RIGHT_RED
Device name of the right red LED on the EV3 brick.
Properties:
- public string name { get; }
Gets the name of the LED.
- public int max_brightness { get; }
Gets the maximum allowable brightness value.
- public int brightness { get; }
Gets the current brightness value.
- public string[]? triggers { owned get; }
Gets the list of available triggers.
- public string trigger { owned get; }
Gets the active trigger.
Methods:
- public void set_brightness (int brightness) throws Error
Sets the brightness.
- public void set_trigger (string trigger) throws Error
Sets the trigger.
Inherited Members:
All known members inherited from class EV3devKit.Devices.Device
All known members inherited from class GLib.Object
- @new
- newv
- new_valist
- get_type
- get_class
- @ref
- unref
- ref_sink
- weak_ref
- weak_unref
- add_weak_pointer
- remove_weak_pointer
- @get
- @set
- get_property
- set_property
- get_data
- set_data
- set_data_full
- steal_data
- get_qdata
- set_qdata
- set_qdata_full
- steal_qdata
- freeze_notify
- thaw_notify
- dispose
- constructed
- notify_property
- connect
- disconnect
- add_toggle_ref
- remove_toggle_ref
- bind_property
- notify
- ref_count