From 7b47d6ed7f1d8bd88d6f61487bc994261ad856b1 Mon Sep 17 00:00:00 2001 From: Bernd Reuther Date: Thu, 4 Mar 2021 12:55:36 +0100 Subject: [PATCH] motor test --- src/schrittmotor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/schrittmotor.py b/src/schrittmotor.py index 01aad57..1b37e97 100644 --- a/src/schrittmotor.py +++ b/src/schrittmotor.py @@ -56,6 +56,8 @@ class motor: self.pwm4.start(0) self.pwm4.ChangeDutyCycle(0) + print(str(self.pwm4)) + def vorwaerts(self, schritte): ges_schritte = schritte * 8 print(str(ges_schritte)) @@ -63,7 +65,7 @@ class motor: if self.halten == 1: test = self.pwm4.ChangeFrequency(freq) - print(str(test)) + print(str(self.pwm4)) for i in range(int(schritte)): if self.pos >= self.schritte_max: