summaryrefslogtreecommitdiff
path: root/README.markdown
blob: aead8e45eb8d7728d5f64ea2715bc4762f13dcc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Various tools related to the Wii Remote / Wii Balance Board.

## bal

Displays Balance Board weight data, mostly for debug purposes.

Usage: ./bal

## mpcal

Calibrates the Motion Plus and outputs the calibration data.

Usage: ./mpcal

(the program will then tell you to put the wiimote onto a flat surface)

## mplog

Logs Motion Plus data to stdout, in the format

    seconds.nanoseconds pitch roll yaw

Where Pitch, Roll and Yaw are the raw 16-bit values.

Usage: ./mplog **>** *filename*

See also:

* http://www.grc.nasa.gov/WWW/k-12/airplane/Images/rotations.gif

## neverball

Experimental patch to control neverball with the balance board.

See also:

* http://finalrewind.org/interblag/entry/neverball-balance-board/

## wibble

Wiimote Blinkenlights. Press D-Pad up to toggle modes, Home to quit.

Usage: ./wibble

## wiiplay

Wrapper around `wiispkr`. Plays any mp3/ogg/wav audia file on the wiimote
speaker.

Requires: `mpg321` / `oggdec` and `sox`. Also, `wiispkr` must be in the current
working directory.

Usage: ./wiiplay *btaddr* *file* [*volume*]

Accepted volumes are 0 .. 255, the default is 64.

## wiiplay-mpd

Outputs music played on a local MPD on the Wiimote speaker. Requires `wiispkr`
in the current working directory and `sox` in $PATH.

Usage: ./wiiplay-mpd *btaddr* [*volume*]

If the MPD does not have a suitable FIFO output, wiiplay-mpd will output
the necessary configuration snippet.

## wiispkr

Plays an 8bit 2kHz signed PCM file on the wiimote speaker. You can create one
using e.g. `sox --norm /tmp/in.wav -b 8 /tmp/out.raw channels 1 rate 2000`

Usage: ./wiispkr *btaddr* [*volume*] **<** *file*