From 312febef19c098a118a7059fc51581c7d7abaf7e Mon Sep 17 00:00:00 2001 From: Bernd Reuther Date: Thu, 4 Mar 2021 14:04:25 +0100 Subject: [PATCH] motor test --- kamera_server.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kamera_server.py b/kamera_server.py index c857a2c..0b9f6d4 100644 --- a/kamera_server.py +++ b/kamera_server.py @@ -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