I'm struggling to get PyFirmata (from Raspberry) to work with Arduino and AccelStepperFirmata, mostly due to almost complete lack of examples, and cumbersome to understand documnetation
Which results in this sequnce
def accStepFmt_Zero(dev_no): badata = bytearray([START_SYSEX, ACCELSTEPPER_DATA, ACCELSTEPPER_ZERO, dev_no, END_SYSEX]) send_sysex(???, badata)
However, its not completely clear, what should be fist argument (byte command) in this case (from PyFirmata docs).
send_sysex(sysex_cmd, data) Sends a SysEx msg. Parameters: sysex_cmd – A sysex command byte : arg data: a bytearray of 7-bit bytes of arbitrary data
Is sysex_cmd = ACCELSTEPPER_DATA, or what?
PyFirmata function "send_sysex" seems like automatically appends START_SYSEX and END_SYSEX, so they don't needed in badata.