Please just look firmata up. It seems like you haven't understand the concept yet.
https://github.com/firmata/protocol
http://firmata.org/
Basically you upload the firmata sketch to your Arduino and then leave it untouched. Connect the Arduino to a serialport. Pick your favourite programming language. Install the firmata library and implement your programming logic.
It's sort of a remote control via uart.
As i wrote before I had some performance issues using firmata. A quick example:
You hook up an I2C sensor to your Arduino and a LED that blinks every 200 ms. Now every time the sensor sends it's data the LED will get stuck in the current state and stop the blinking until the sensor's data is submitted. So depending on your usage you might run into some problems.
edit: lovely cross posting
https://github.com/firmata/protocol
http://firmata.org/
Basically you upload the firmata sketch to your Arduino and then leave it untouched. Connect the Arduino to a serialport. Pick your favourite programming language. Install the firmata library and implement your programming logic.
It's sort of a remote control via uart.
As i wrote before I had some performance issues using firmata. A quick example:
You hook up an I2C sensor to your Arduino and a LED that blinks every 200 ms. Now every time the sensor sends it's data the LED will get stuck in the current state and stop the blinking until the sensor's data is submitted. So depending on your usage you might run into some problems.
edit: lovely cross posting