Class: BacklightLevelController
A controller for automated backlighting levels based upon the angle of the sun in the sky.
Constructors
constructor
• new BacklightLevelController(bus
, paused?
, minIntensity?
, maxIntensity?
): BacklightLevelController
Creates an automatic backlight controller.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
bus | EventBus | undefined | The event bus. |
paused | boolean | false | Whether the controller should be initially paused. Defaults to false . |
minIntensity | number | BacklightLevelController.DEFAULT_MIN_INTENSITY | The maximum intensity commanded by the controller. Defaults to 0. |
maxIntensity | number | BacklightLevelController.DEFAULT_MAX_INTENSITY | The minimum intensity commanded by the controller. Defaults to 1. |
Returns
Defined in
src/sdk/utils/controllers/Backlight.ts:60
Properties
intensity
• Readonly
intensity: Subscribable
<number
>
The automatic backlight intensity computed by this controller.
Defined in
src/sdk/utils/controllers/Backlight.ts:51
Accessors
autoMaxIntensity
• get
autoMaxIntensity(): number
Get the max auto intensity value
Returns
number
The maximum intensity applied by the auto backlight.
Defined in
src/sdk/utils/controllers/Backlight.ts:82
• set
autoMaxIntensity(max_intensity
): void
Set the max auto intensity value.
Parameters
Name | Type | Description |
---|---|---|
max_intensity | number | The maximum intensity applied by auto backlight. |
Returns
void
Defined in
src/sdk/utils/controllers/Backlight.ts:90
autoMinIntensity
• get
autoMinIntensity(): number
Get the min auto intensity value
Returns
number
THe minimum intensity applied by the auto backlight.
Defined in
src/sdk/utils/controllers/Backlight.ts:99
• set
autoMinIntensity(min_intensity
): void
Set the min auto intensity value.
Parameters
Name | Type | Description |
---|---|---|
min_intensity | number | The minimum intensity applied by the auto backlight. |
Returns
void
Defined in
src/sdk/utils/controllers/Backlight.ts:107
Methods
setPaused
▸ setPaused(paused
): void
Pause or unpause real-time processing.
Parameters
Name | Type | Description |
---|---|---|
paused | boolean | Whether to pause or not. |
Returns
void
Defined in
src/sdk/utils/controllers/Backlight.ts:116