fix handlePinMode in StepperFirmata