Source code for 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.
"""

[docs] PRESSED: int = 0x01
"""Hub power button pressed."""
[docs] RELEASED: int = 0x00
"""Hub power button released."""
[docs] UP: int = 0x01
"""Remote button: ``+`` (up)."""
[docs] DOWN: int = 0xff
"""Remote button: ``-`` (down)."""
[docs] STOP: int = 0x7f
"""Remote button: red (stop)."""