To use a stepper motor controller you will need a special attribute in RoboPiLib called pwmWrite.
You can find this RoboPiLib and example code HERE.
import RoboPiLib_pwm as RPLimport setuppul_pin = 1 #Your pin #dir_pin = 2 #Your pin #direction = 0 #can be 0 or 1speed = 5000 #smaller = fasterRPL.pinMode(pul_pin,RPL.PWM)RPL.pinMode(dir_pin,RPL.OUTPUT)RPL.digitalWrite(dir_pin,direction) #sets the motor to forwards or backwardsRPL.pwmWrite(pul_pin,speed,speed*2) #moves the motor