Interfacing PIC with C++ program on computer

lpsarsam

Member
Hi all :D
I've been looking through the interfacing manual for PIC chips to computers and I was wondering if it is possible to use output from a picaxe chip to use as user input in a c++ (and perhaps opengl) program.
So i.e. a simple c++ program, wait for input 1 on picaxe to go high. When it does, write into the command prompt "input 1 is on".
Thanks :D
 

Dippy

Moderator
Get your C++ PC prog to check/read serial buffer (or whatever interface you prefer), then , when a button is pressed, get PICAXE to send serial (or whatever digital you prefer) to your PC.
Your PC prog reads that and does whatever you tell it to do in code. If serial, it's just a matter of your PC responding to byte or bytes in the buffer whether reading, polling or interrupt. Pick the comms you are happiest with.

I doubt if you'll find C examples in the PICAXE manual for your PC code. I'm sure that there must be dozens of nerdynet sites with example code of how to read the buffer. Is there nothing in your C++ compiler Help?
Have a look or wait for Ec to log in.
 
Top