.enabled Property

Function:

Specifies whether the display panel is enabled.

Type:

Enum (no_yes, byte)

Value Range:

0 — NO: Disabled (default).

1 — YES: Enabled.

See Also:

Preparing the Display for Operation


Details

Several properties — lcd.iomapping, lcd.width, lcd.height, lcd.inverted, lcd.rotated — can only be changed when the display panel is disabled.

When you set this property to 1 — YES, the controller of the panel is initialized and enabled. This will only work if your display is properly connected, the correct display type is selected in your project, lcd.iomapping is set property, and the necessary I/O lines are configured as outputs. The lcd.error read-only property will indicate 1 — YES if there was a problem enabling the display.

Setting the property to 0 — NO disables the controller/panel.


.enabled Property

Details