I got an Arduino Mega 1280 and want to communicate with it via Firmata. That sounds easy...
So my problem: If I use the StandardFirmata Firmware for the Arduino, which is included in Arduino 1.0, I can set output Pins, and send a signal to them ((highlighting a led on pin 24):
arduino.digitalWrite(24, Arduino.HIGH);
But I cannot read any digital input from my Mega. As I found out, some people had the problem with reading on ports higher than 13. I can't verify it, my input signals start at port 23. example:
if (arduino.digitalRead(25) == Arduino.HIGH){
println("is high");
}
Now I installed the AllInputsFirmata on my Mega, it is also preinstalled in Arduino 1.0. Now it is no problem to read from an digital input: example:
if (arduino.digitalRead(25) == Arduino.HIGH){
println("is high");
}
But this time, I can't send any signal out.
So, what is going on?
(Yes, I tested it with the FirmataTest software, and there everything goes alright!)