motor test

This commit is contained in:
Bernd Reuther 2021-03-04 14:04:25 +01:00
parent 3d260c72a7
commit 312febef19

View File

@ -15,10 +15,15 @@ for pin in pins_in:
GPIO.output(pins_out['kamera']['nr'], GPIO.HIGH)
GPIO.setup(20, GPIO.OUT)
m3_pwm4 = GPIO.PWM(20, freq)
m3_pwm4.start(0)
m1 = motor('drehen', m1_a1, m1_b1, m1_a2, m1_b2, m1_t1, m1_t2, m1_te, m1_es, 0, 180)
m2 = motor('kippen', m2_a1, m2_b1, m2_a2, m2_b2, m2_t1, m2_t2, m2_te, m2_es, 1, 90)
print(dir(m2))
print(dir(m2.pwm4))
print(dir(m3_pwm4))
#m1.schritte_max = 180
#m2.schritte_max = 90