Go Down

Topic: arduino duiminalove programming using header and source code files (Read 977 times) previous topic - next topic

hello im working on a very important project for my school and i need help. im am trying to integrate a wii remote to an arduino using a host shield using the link http://www.circuitsathome.com/mcu/ps3-and-wiimote-game-controllers-on-the-arduino-host-shield-part-3 now when i look at the codes https://github.com/moyuchin/WiiRemote_on_Arduino i don't know how to integrate those header and source files into a arduino duiminalove ATMEGA328
ANY HELP WILL BE GREATLY APPRECIATED

Marius

That looks like a library. You have to copy the whole lot to a directory with the same name as the cpp file under your arduino/library directory.

It would look like c:\Arduino\library\WiiRemote\

Then you include the WiiRemote header (WiiRemote.h) in your sketch.
Rather people think you to be a fool than you open your mouth and confirm it.

can you please down grade that to a newbie status or can you give me links or tutorials on how to do that please?
Thank You

Marius

This is a good place to start. It will give you background on how things are put together. There are also links on the page to the library section but I suggest work through this one first.
http://arduino.cc/en/Guide/HomePage

Then click on the "Environment" link to get here

http://arduino.cc/en/Guide/Environment

Please ask again if you need more help.
Rather people think you to be a fool than you open your mouth and confirm it.

so now if i add the library form the wiimote programming it should be able to compile?

Marius

If you added it to the correct path the Arduino IDE will pick it up as a dependency and compile it in.
Rather people think you to be a fool than you open your mouth and confirm it.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy