Pages: [1]   Go Down
Author Topic: Help with C++ interfacing  (Read 379 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 19
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm very new to programing in C ++ and C#. However I would like to use either programing language to communicate with my arduino. Right now I have a simple sketch uploaded onto my arduino board that turns on a LED when the user types 'H' in the serial monitor window.

Now I would like to interface this code with C++. Can anyone please tell me the best way to do this? Or if anyone has some sample C++ code that they can send me to get me started, that would be great too. Any help on getting me started would be greatly appreciated!

Thanks,
Bella
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 308
Posts: 26471
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
.
Well, who can argue with that?   smiley-grin
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset



http://www.phanderson.com/morgan_fall_2009/

Near the bottom.  I try to give a sample and have my students come up with applications.

The C++ is devcpp

Best.

Peter Anderson
Logged

NYC
Offline Offline
Full Member
***
Karma: 0
Posts: 129
The singularity is near!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you are looking for a simple example, try http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html

You can run the send examples without any hardware. It just sets a pin high. It doesn't matter that nothing is connected to the pin.

The first couple of paragraphs of his blog contain the link to the library and explain how to install it. It looks real simple.
Logged

Pages: [1]   Go Up
Jump to: