lpf2.button_state

Hub / remote button-state codes (LWP ButtonState).

PRESSED/RELEASED describe the hub power button; UP/DOWN/STOP are the values reported by the PoweredUp Remote’s +/-/red buttons.

Attributes

DOWN

- (down).

PRESSED

Hub power button pressed.

RELEASED

Hub power button released.

STOP

red (stop).

UP

+ (up).

Module Contents

lpf2.button_state.DOWN: int = 255[source]

- (down).

Type:

Remote button

lpf2.button_state.PRESSED: int = 1[source]

Hub power button pressed.

lpf2.button_state.RELEASED: int = 0[source]

Hub power button released.

lpf2.button_state.STOP: int = 127[source]

red (stop).

Type:

Remote button

lpf2.button_state.UP: int = 1[source]

+ (up).

Type:

Remote button