Public Member Functions | |
def | __init__ |
def | flipLED |
def | flipRumble |
def | flipRumbleOrLED |
def | run |
def | turnIndicatorOn |
Public Attributes | |
LEDMask | |
outputIndicator | |
patternArray | |
stop | |
wiimoteDevice |
Thread for executing rumble and LED pulse patterns.
Definition at line 888 of file wiimote_node.py.
def wiimote_node::SwitchPulser::__init__ | ( | self, | ||
patternArray, | ||||
outputIndicator, | ||||
wiimoteDevice | ||||
) |
Parameters: o patternArray: For each pattern: an OutputPattern object There will only be one such object for Rumble output. For LEDs there will be one for each LED on the Wiimote. If one of the elements is None, that output indicator is left unchanged. For example, if the 2nd element in an LED pattern object array is None, the 2nd LED on the Wiimote will be left in its current state. Note that the patterns may be of different lengths. So, one LED might have a 3-state pattern, while another LED's pattern is 5 states long. o RUMBLE or LED to indicate what is to be pulsed o A Wiimote device object Note: We always start the affected indicators as if they were in the OFF state, and we always leave them in the off state.
Definition at line 891 of file wiimote_node.py.
def wiimote_node::SwitchPulser::flipLED | ( | self, | ||
index | ||||
) |
Definition at line 1049 of file wiimote_node.py.
def wiimote_node::SwitchPulser::flipRumble | ( | self | ) |
Definition at line 1045 of file wiimote_node.py.
def wiimote_node::SwitchPulser::flipRumbleOrLED | ( | self, | ||
index = 0 | ||||
) |
Definition at line 1037 of file wiimote_node.py.
def wiimote_node::SwitchPulser::run | ( | self | ) |
Definition at line 920 of file wiimote_node.py.
def wiimote_node::SwitchPulser::turnIndicatorOn | ( | self, | ||
theIndicator | ||||
) |
Turns indicator(s) of interest ON. Parameter: RUMBLE or LED
Definition at line 1002 of file wiimote_node.py.
Definition at line 1022 of file wiimote_node.py.
Definition at line 915 of file wiimote_node.py.
Definition at line 912 of file wiimote_node.py.
Definition at line 918 of file wiimote_node.py.
Definition at line 913 of file wiimote_node.py.