Go Down

Topic: FIRMATA sends digital input twice (Read 438 times) previous topic - next topic

kgreg99

Standard Firmata 2.0 included in Arduino-0015 sends digital pin message twice:
[font=Microsoft Sans Serif]void outputPort(byte portNumber, byte portValue)
{
 portValue = portValue &~ portStatus[portNumber];
 if(previousPINs[portNumber] != portValue) {
       Firmata.sendDigitalPort(portNumber, portValue);
       previousPINs[portNumber] = portValue;
      Firmata.sendDigitalPort(portNumber, portValue);
   }
}[/font]
Why ? I didn't find anything like that in the protocol specification. Is it a bug ?

jfmateos

I have exactly the same question.

I cannot understand why standardfirmata executes sendDigitalPort twice.

And what seems even more odd, although sendDigitalPort is executed twice, it is only received once in Flash.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy