I was wondering if anybody knows of a library or if there is any project underway to make the Arduino into a simple device for relaying ita IO data to a PC. What I would want is running Arduino code in the PC, against a library that would mimic the Arduino libraries but would talk to the Arduino though the serial in order to send/get data, instead of actually having the whole thing running in the Arduino.
So, e.g. analogRead(X) would ask the Arduino (through the serial) for the current data in X pin, and return it back to the PC.
The point is being able to develop most of the Arduino code in the PC (which means debugging, breakpoints, logging, etc) with all the development goodies that brings.
I guess I am looking into: -a fake version of the Arduino libraries (that would emit serial commands instead) -a piece of code that would run on the Arduino that would respond to those commands -a convention on sending data over the serial bus (maybe something like: AnalogRead(1) == "AR,01", return value being "AR,01:12.2")