added code for Wii Nunchuck and Arduino control