What sort of code do you use to read other stuff?

What sort of code do you use to control other random things like, for instance a Wii nunchuck? Or even a wii remote. Do you practically make up the code, or what?

usually there is a protocol defined (or in the case of a consumer product sniffed out and documented) and from there you can start writing code to talk back (if it doesnt exist already, for example in the library)

sometimes they use industry standards like spi or I2C, sometimes its totally propitiatory like apple ADB

Is there some sort of library that has all the code possible in it?

Is there some sort of library that has all the code possible in it?

Seems pretty unlikely, given the number of possibilites.
The Wii uses I2C, doesn’t it?

Is there some sort of library that has all the code possible in it?

A library that has code to read any device or just the Wii controllers?

How boring would the world be if the former was true! :slight_smile:

But, as with the latter, if you Google "arduino " then you’ll often find that no matter how strange your idea, someone has got there first.

In the case of the nunchuck -
http://www.windmeadow.com/node/42