motor test

This commit is contained in:
Bernd Reuther 2021-03-04 12:55:36 +01:00
parent 2508534024
commit 7b47d6ed7f

View File

@ -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: