Wiimote

From ArmadeusWiki
Revision as of 09:09, 23 June 2010 by JulienB (Talk | contribs) (creation)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

It is possible to control your APF board with a Wiimote through a Bluetooth interface.

Installation

  • if not already available, install uinput driver
$ make linux26-menuconfig
Device Drivers  --->
    Input device support  --->
        [*]   Miscellaneous devices  --->
            <M>   User level driver support
$ make linux26 && make
  • add cwiid package to Buildroot:
$ make menuconfig
Package Selection for the target  --->
    Hardware handling / blockdevices and filesystem maintenance  --->
        [*]   cwiid
$ make
  • reflash your rootfs

Usage

# modprobe uinput
  • search for your wiimote:
# lswm
Put Wiimotes in discoverable mode now (press 1+2)...
00:18:00:10:20:8C
  • use it:
# wminput
input: Nintendo Wiimote as /devices/virtual/input/input2
Put Wiimote in discoverable mode now (press 1+2)...
Bluetooth: L2CAP ver 2.11
Bluetooth: L2CAP socket layer initialized
Ready.
# wmdemo

Links