Object <- HardwareButton <- BacklightButton |
|
|
ButtonAction ButtonPushed MainBatteryIsGood MainBatteryIsLow PoweringDown PoweringUp ResetClass |
Class BacklightButton defines no new attributes.
Fields
| Field | Type | |
|---|---|---|
| HardwareButton: | timePushed: | Unsigned |
| timeReleased: | Unsigned | |
| BacklightButton: | lowPowerMode: | Boolean |
instance BacklightButton tag; timePushed: 0; timeReleased: 0; lowPowerMode: false; end instance;
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;