NSLU2-Linux
view · edit · print · history

Copied from http://www.nslu2-linux.org/wiki/HowTo/ConnectWiimoteDebian
Edited for the Debian Slug

In this page I will describe how to connect a Nintendo wiimote on your slug. This document follows on from the debian link ConnectWiimoteDebian. In that page just go as far as the following bit that gets the address of the mote.

hcitool scan

Please note the address of the wiimote is returned. This number is the address of the wiimote.

I log in as root. use sudo otherwise

Install Python, bluez and python-bluez


apt-get bluez-utils
apt-get python
apt-get install python-bluez

I tried installing from code, but the compile failed. There is the python-bluez package which is why I love this platform. ARM rules. Create a file called wii.py

Use the code from http://www.wiili.org/index.php/Wiiewer and respect the license DWTFYWT public licence.

Change the address as required. Don't worry about pairing and all the rubbish. It's not needed. The critical thing is to make sure bluetooth is going using hcitool dev and hcitool scan.

Easy Peezy Lemon Squeezy!!

ps. Use my code as it does not require pygame and has a simpler output. http://www.bluekulu.com/files/wii.pys

Now that you have that done, scratch your head and wonder the age old question of geekery ... "why?"

view · edit · print · history · Last edited by Diarmuid.
Originally by Diarmuid Wrenne.
Page last modified on August 26, 2008, at 06:04 AM