wiimote#

class platypush.plugins.wiimote.WiimotePlugin(**kwargs)[source]#

Bases: Plugin

WiiMote plugin. A wrapper around the platypush.backend.wiimote backend to programmatically control a Nintendo WiiMote.

It requires the WiiMote backend to be enabled.

close()[source]#

Closes the connection with the WiiMote

connect()[source]#

Connects to the WiiMote

rumble(secs)[source]#

Rumbles the controller for the specified number of seconds

set_leds(leds)[source]#

Set the LEDs state on the controller

Parameters:

leds (list) – Iterable with the new states to be applied to the LEDs. Example: [1, 0, 0, 0] or (False, True, False, False)

state()[source]#

Return the state of the controller