Remote Control

Warning

This remote is not yet supported. Upvote this issue if you want to see this happen.

../_images/pupremote.png
class Remote(address=None, timeout=10000)

LEGO® Powered Up Bluetooth Remote Control.

Connects to the remote.

Parameters
  • device (str) – Bluetooth address of the remote. If no address is given, it connects to the first available remote that it finds.

  • timeout (time: ms) – How long to search for the remote.

address

Bluetooth address of the remote, or None if it is not connected.

light.on(color)

Turns on the light at the specified color.

Parameters

color (Color) – Color of the light.

light.off()

Turns off the light.

buttons.pressed()

Checks which buttons are currently pressed.

Returns

Tuple of pressed buttons.

Return type

Tuple of Button