setDigitalPinValue
method creates a DIGITAL_MESSAGE
message instead of a SET_DIGITAL_PIN_VALUE
message
#37
Labels
2.5.x
Planned for 2.5.x release
This method is called
setDigitalPinValue
but it actually builds aDIGITAL_MESSAGE
message:https://github.com/kurbatov/firmata4j/blob/master/src/main/java/org/firmata4j/firmata/FirmataMessageFactory.java#L226
If you are using
StandardFirmata.ino
this can result in the wrong pin being changed sinceSET_DIGITAL_PIN_VALUE
changes the value of a single pin whereDIGITAL_MESSAGE
changes the value for all pins on a port.DIGITAL_MESSAGE
https://github.com/firmata/arduino/blob/master/FirmataConstants.h#L38
SET_DIGITAL_VALUE
https://github.com/firmata/arduino/blob/master/FirmataConstants.h#L44
The text was updated successfully, but these errors were encountered: