lpf2.button_state

Button states reported by LEGO hubs and remotes.

PRESSED / RELEASED are for a hub’s button; UP / DOWN / STOP are the + / - / red buttons on a Powered Up remote.

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