When I look for info on Firmata, I get to look at a lot of code I generally don't understand.
Does anyone have a good link on Firmata-talk ? Or dare to take me through some basic steps.
I've employed the allInput example, and it works. It's confusing, when tapping through (in processing)
for (int i = 0; i <= 13; i++) {
if (arduino.digitalRead(i) == Arduino.HIGH){
i no longer represent the original pin used (I use pin 11 and it matches i=3)
I've tried to be smart and reduce the code to get a 'simple' read of an analog value .. but won't work. I'm sure there is a simper and more direct way to reach that goal than to take the allInput example apart.
The simpleAnalogFirmata example uses a callback-function "analogWriteCallback( .. )" .. It'll have to be an accessible function in processing, but how do I recognize it there?
You could try the Firmata site - Main Page - Firmata. I have to say, though, I find it better to write my own sketches on the Arduino and in Processing, and ignore Firmata altogether.
dxw00d:
I have to say, though, I find it better to write my own sketches on the Arduino and in Processing, and ignore Firmata altogether.
I'm out late on responding, I hope you still are around. The meaning of your line didn't strike me at first ..
Can I assume, that you'll build a way to communicate over the serial? I could do that (I did it from visual basic), but the focus would be to make it sufficiently fast. .. Maybe I should have a look at SPI and see if that can bring me anywhere.
Well, it takes time to get to know all components.
Sending ASCII data is not the way to do it, then. Send binary data - much faster.
I googled around to get a gist on weather I could use usb for the SPI bitbanging. That appears to not be the case.
I need one bit. And I need it now.
Anyway, time rushes on. The project is obsolete.