Archive for January, 2007

Update on my Wiimote things…

Thursday, January 4th, 2007

Here: http://thoduv.drunkencoders.com/wii/wiimote_04012007.tar.gz (source, GPL)
It includes:

  • wiimote.c: Functions to communicate with the Wiimote. Supports buttons, leds, rumble, memory reading/writing, IR (broken, or works sometimes, weird…), accelerometter reading (just receiving x,y,z. I don’t have math skills for more), expansion port control and init (can’t do much as I don’t own any Nunchuk nor Classic controller), basic speaker init (limited to the status of knowledge about the speaker),…
  • ir_test: SDL display of IR dots (needs SDL)
  • motion_test: OpenGL display of accelerometers axes (needs OpenGL)
  • exp_test: Allows to detect the presence of an expansion device and to init the device.
  • mii_tool: Small tool for reading/writing Miis (write seems to be broken though).
  • speaker_test: Plays a annoying note through the speaker (sometimes it doesn’t work) (Based on Carl Kenner discoveries) (uses SDL for timing).