Pages: [1]   Go Down
Author Topic: arduino duiminalove programming using header and source code files  (Read 908 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 44
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Centurion RSA
Offline Offline
Full Member
***
Karma: 0
Posts: 166
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Rather people think you to be a fool than you open your mouth and confirm it.

Offline Offline
Newbie
*
Karma: 0
Posts: 44
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Centurion RSA
Offline Offline
Full Member
***
Karma: 0
Posts: 166
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Rather people think you to be a fool than you open your mouth and confirm it.

Offline Offline
Newbie
*
Karma: 0
Posts: 44
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Centurion RSA
Offline Offline
Full Member
***
Karma: 0
Posts: 166
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you added it to the correct path the Arduino IDE will pick it up as a dependency and compile it in.
Logged

Rather people think you to be a fool than you open your mouth and confirm it.

Pages: [1]   Go Up
Jump to: