that's good, we are nearly there.
did you see any error?
assuming there was no error, let's run this code to start the motor in pedal mode:
analogWrite(A5, analogRead(A3)/4); // replicate torque input, analogRead 10-bit. analogWrite 8-bit.
// Experimenting
// PAS Cadence Input Pin - D2...