As of the beta version I am releasing here and now (not an 'official' release) the above should be fully supported. Additional work is required to support other extensions (I only have a nunchuck, and even that one is borrowed, sorry!) and IR.
So.
Existing features:
- Calibrated accelerometer (not very accurate - might be something wrong with the accessing code)
Wiimote core buttons
Calibrated motionplus
Nunchuck analog stick
Nunchuck buttons
Nunchuck accelerometer
- IR
Balance board, etc, all the extensions except Nunchuck.
- freepie-wiimote-B1-2013-07-27_2130.rar - the release with wiimote support
wiimote_nunchuck_and_motionplus.txt - using both motionplus and nunchuck at the same time, to control the mouse
wiimote_nunchuck.txt - using nunchuck stick to control the mouse pointer, left mouse button with nunchuck Z
wiimote_motionplus.txt - using motionplus to control the mouse pointer, left mouse button with wiimote A
wiimote_acceleration.txt - simple demonstation of logging the acceleration output
Download the release, unpack it and start it.
Open a suitable example script, using some of the hardware you want to try out.
Pair the Wiimote using the toshiba bluetooth stack.
Start the script - at this point, the wiimote should rumble. Let the wiimote lie flat until you see values (calibration)
Check the watch window and / or the mouse pointer for confirmation that everything works!
Things to watch out for:
1) That the wiimote doesn't work at all - You can pair with it using the toshiba stack, but FreePIE doesn't show output.
2) That any or all of the output values are erronous. Acceleration should be 9.81 or so,
and if you use the ahrs fusion of the motionplus it should drift extremely much, but a 90 degree turn should more or less equal 90.
3) FreePIE crashes of course.
For the more adventurous, code is available at https://github.com/maxmalmgren/FreePIE/ ... te-support . I use a library written specifically for the purpose of FreePIE called Dolphiimote, available at https://github.com/maxmalmgren/DolphiiMote .