Update Stepper motor sample code