Send via serial? Help needed.

So, I'm having a small problem. It's probably extremely easy to solve but any help is much appreciated (I'm a complete C++ noob).

The compiled version of the following code simply prints the current Windows master volume level as a number from 0-100 on screen.

https://gist.github.com/rdp/8363580

So, instead of printing the volume level on screen once, I wish to modify the code so that it loops every 50 ms and sends the result, say "86", to the computer serial port (COM1, baud rate 9600), continously until the executable is closed.

Once transmitting, I'll rig an Arduino to listen on the same port and baud rate, but I'll figure out that part for myself.
Last edited on
Topic archived. No new replies allowed.