I am trying to figure out how to get a library that is posted as text into a .h & .cpp file for the Arduino library. For example:
http://www.arduino.cc/playground/Main/WiiChuckClass
I looked at the library tutorial but still haven't cracked this.
It appears that everything up to the first #endif & [Get Code] link is for the header file. And that the code after that looks to be a sketch. I'm not sure what goes in the .cpp file.
My questions are:
What would I put in the .h library file?
What would I put in the .cpp library file?
What is the standard way of making these files?
Thank you!