Difference between revisions of "Wiimote"
From ArmadeusWiki
m (→Links) |
m (→Installation) |
||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
* if not already available, install ''uinput'' driver | * if not already available, install ''uinput'' driver | ||
<pre class="host"> | <pre class="host"> | ||
− | $ make | + | $ make linux-menuconfig |
</pre> | </pre> | ||
<pre class="config"> | <pre class="config"> | ||
Line 13: | Line 13: | ||
</pre> | </pre> | ||
<pre class="host"> | <pre class="host"> | ||
− | $ make | + | $ make linux && make |
</pre> | </pre> | ||
* add cwiid package to Buildroot: | * add cwiid package to Buildroot: | ||
Line 57: | Line 57: | ||
* https://help.ubuntu.com/community/CWiiD or http://doc.ubuntu-fr.org/wiimote (french) | * https://help.ubuntu.com/community/CWiiD or http://doc.ubuntu-fr.org/wiimote (french) | ||
− | [[Category: | + | [[Category:UserInput]] |
[[Category:Bluetooth]] | [[Category:Bluetooth]] |
Latest revision as of 17:11, 4 September 2013
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
- First, be sure that your Bluetooth interface is up and running
- load uinput driver:
# 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