Wiimote

From ArmadeusWiki
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 linux-menuconfig
Device Drivers  --->
    Input device support  --->
        [*]   Miscellaneous devices  --->
            <M>   User level driver support
$ make linux && 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