replace Serial.write with Firmata.write (as in dev branch)