Wiimote on Linux?!

Discussion in 'Miscellaneous' started by PseudoDistant, Apr 14, 2018.

  1. That's right! Wiimote on Linux!
    I've learned how to hack a Wiimote with Raspbian ( a Debian variant for those who don't know ).
    I have to give credit to CrazySqueak (whose WordPress post taught me) for this thread.
    Step 1: Install some files. sudo apt-get install python-cwiid bluetooth
    That's it!

    Step 2:Have fun! (Some fun things to mess with:

    You need python so run the command python .
    Connection: wm = cwiid.Wiimote()
    Press 1+2 on your Wiimote, this may take a few tries ( only took me 2 ).
    LEDs:
    wm.led = 1 will light LED 1
    wm.led = 2 will light LED 2
    wm.led = 4 will light LED 3
    wm.led = 8 will light LED 4
    wm.led = 238 will light LEDs 2, 3, and 4 simultaneously!
    Buttons:
    wm.rpt_mode = cwiid.RPT_BTN
    (This one confuses me, on my device, it always reports '2'.)
    Rumble: wm.rumble = True will make it Rumble, and wm.rumble = False will make it stop.
    I hope that you have fun with this ;) and once again I want to thank CrazySqueak ( https://www.youtube.com/channel/UCJHSUaNMT19yg__Y1bVf9lA ( This is his youtube.))
    (Original post: https://crazysqueak.wordpress.com/2015/12/17/hack-wimote-raspberry-pi/ )
    I believe this works with other distributions of Linux ( at least Debian distributions ) ( works on Lubuntu without a hitch ).
  2. You'll need to establish a Bluetooth connection on your pc, though. Which, if it isn't built-in, might be tricky, and will cost money. And I haven't ever owned a pc which had Bluetooth built-in.