import stepperPigpioAcc



print("peter")
stepperPigpioAcc.runStepper()
#try:
#    while True:
        #pi.write(DIR, pi.read(SWITCH))  # Set direction
#        sleep(.1)
#         

#except KeyboardInterrupt:
#    print ("\nCtrl-C pressed.  Stopping PIGPIO and exiting...")
#finally:
#    pi.set_PWM_dutycycle(STEP, 0)  # PWM off
 #   pi.stop()
#     print("finish")
