Anybody up for some typograwii?
Wiidraw is a small example that shows how to communicate between the WiiMote and NodeBox. No actual Wii is needed, just the remote.
Download
We have a full WiiNode library now, with this script as an example. And a game!
Prerequisites
OSCulator, a program that interfaces perfectly with the WiiMote. The necessary configuration settings are in the wiidraw.zip file under settings.oscd.
The program needs to be running in the background, and communicates over OSC.
Getting your WiiMote to work with the program, for me, meant pushing the red SYNC button (under the battery cover) a few times. Once you get a battery reading, you should be fine.
Running the drawing application
Hold the Wii control up, like a torch. Open the wiidraw.py script in NodeBox and run (Command-R) the script. Now, you can control the blue ball with the WiiMote. By pressing the A button, you start drawing. If you release the button, the drawing stops.
Playing around with the code
The full code is right there, so you can start changing whatever you like. You will want to play with some stuff in the "draw" function: you could change the numbers after sin() and cos() to make the trails move differently. Just have fun: you can't break anything (except for your WiiMote).
Any questions?
If you have any questions, or made some nice hacks of your own, share them in the NodeBox Forum!
Download the example
![]() | wiidraw.zip (12KB) Last updated for NodeBox 1.9.3 |


