drawGraph(); //Left Motors pin 2/3, R (4/5), Z (7/6), ARM(8/9)
if (L >= 0){
arduino.digitalWrite(2, Arduino.HIGH);
} else {
arduino.digitalWrite(2, Arduino.LOW);
}
arduino.analogWrite(3, round((L/100)*255));
if (R >= 0){
arduino.digitalWrite(4, Arduino.HIGH);
} else {
arduino.digitalWrite(4, Arduino.LOW);
}
arduino.analogWrite(5, round((R/100)*255));
if (Z >= 0){
arduino.digitalWrite(7, Arduino.HIGH);
} else {
arduino.digitalWrite(7, Arduino.LOW);
}
delay(100);
arduino.analogWrite(6, round(Z*255));
delay(100);
arduino.digitalWrite(13, Arduino.HIGH);
}
That's my code write now. However, as it stands, all the other digitalWrite functions work EXCEPT the last one, where I call arduino.digitalWrite(13, Arduino.HIGH);
My voltmeter reads 0.02 volts on that pin regardless of what I'm doing, but if I run the standard firmata.exe, it all works fine.
Furthermore, voltage on pin 2 fluctuates from 0.95 to 4.8 (Using a standard DMM, no Oscilloscope around) when set to HIGH, but when set to LOW, it gives ground like expected.