[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

BacklightButton

inherits from HardwareButton
inherits from HasReinitialize
inherits from WantsPowerEvents

Object <- HardwareButton <- BacklightButton



Operations

Get list of all operations

ButtonAction
ButtonPushed
MainBatteryIsGood
MainBatteryIsLow
PoweringDown
PoweringUp
ResetClass


Attributes

Get list of all attributes

Class BacklightButton defines no new attributes.


Fields

Field Type
HardwareButton: timePushed: Unsigned
timeReleased: Unsigned
BacklightButton: lowPowerMode: Boolean


Instance template

instance BacklightButton tag;
     timePushed: 0;
   timeReleased: 0;
   lowPowerMode: false;
end instance;

Class definition

Define Class BacklightButton;
    inherits from HardwareButton;
    inherits from HasReinitialize, WantsPowerEvents;

    field       lowPowerMode: Boolean;

    overrides ButtonPushed;
    overrides ButtonAction;

    overrides ResetClass;

    /* Power management */
    overrides PoweringUp;
    overrides PoweringDown;
    overrides MainBatteryIsLow;
    overrides MainBatteryIsGood;
end class;