wiisend

wiisend — Sends data to one of a number of external Nintendo Wiimote controllers.

Description

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.

Syntax

kres wiisend kcontrol, kvalue[, knum]

Initialization

This opcode must be used in conjuction with a running wiiconnect opcode.

Performance

[Note] 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.

Examples

See the example for wiiconnect

See Also

wiiconnect, wiidata, wiirange,

Credits

Author: John ffitch
Codemist Ltd
2009

New in version 5.11