Arduino Playground is read-only starting December 31st, 2018. For more info please look at this Forum Post

Updated Wii Classic Controller Library

Created by Andrew Mascolo "HazardsMind"

Current Version: 1.03 (FIXED)

Since I am not the original writer(Tim Hirzel) of the Wii Classic controller library that has been on the playground for quite a while now, I am unable to actually update it. However what I can do is make my own version, and share it amongst the community.

This library was created because I found some flaws Tim's library that kinda bugged me. See this link http://forum.arduino.cc/index.php?topic=254831.msg1803127#msg1803127

I kept the almost all the same button functions, because I'm sure most who have Tim's library are used to working with those function. This is easier for you because you don't need to write anything. I did however take out the left and right bumper pressure functions because when I read the raw data, nothing was changing depending on button pressure.


The functions:

WiiClassicControl
CollectData
RawData *Only available if USE_MONITOR is set to true in .h file
ShowData *Only available if USE_MONITOR is set to true in .h file
SetLefttStick_Factors
SetRightStick_Factors
leftShoulderPressed
rightShoulderPressed
lzPressed
rzPressed
leftDPressed
rightDPressed
upDPressed
downDPressed
selectPressed
startPressed
homePressed
xPressed
yPressed
aPressed
bPressed
leftStickX
leftStickY
rightStickX
rightStickY


DOWNLOAD HERE