wiimote#

class platypush.backend.wiimote.WiimoteBackend(bdaddr=None, inactivity_timeout=300, *args, **kwargs)[source]#

Bases: Backend

Backend to communicate with a Nintendo WiiMote controller

Triggers:

  • platypush.message.event.Wiimote.WiimoteEvent when the state of the Wiimote (battery, buttons, acceleration etc.) changes

Requires:

__init__(bdaddr=None, inactivity_timeout=300, *args, **kwargs)[source]#
Parameters:
  • bdaddr (str) – If set, connect to this specific Wiimote physical address (example: 00:11:22:33:44:55)

  • inactivity_timeout (float) – Number of seconds elapsed from the last Wiimote action before disconnecting the device (default: 300 seconds)

run()[source]#

Starts the backend thread. To be implemented in the derived classes if the loop method isn’t defined.