wiisend — Sends data to one of a number of external Nintendo Wiimote controllers.
Plugin opcode in wiimote. This opcode is part of the plugin repository and has to be installed separately. The plugin repository can be found here: https://github.com/csound/plugins
Sends data to one of a number of external Nintendo Wiimote controllers.
Note | |
---|---|
Please note that these opcodes are currently only supported on Linux. |
kcontrol -- the code for which control to write.
kvalue -- the value to write to the control.
knum -- the number of the which Wiimote to access, which defaults to the first one (zero).
On each access a particular data item of the Wiimote is written. The currently implemented controls are given below, together with the macro name defined in the file wii_mac:
3 (WII_RUMBLE): starts or stops the Wiimote rumbling, depending on the value of kvalue (0 to stop, 1 to start).
4 (WII_SET_LEDS): set the four LED lights on the Wiimote to the binary representation of kvalue.