motor eichen

This commit is contained in:
Bernd Reuther 2021-03-04 15:40:40 +01:00
parent cda9bffd2a
commit 2ad88bf305
2 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ m1.start()
m2.start()
m1.eichen()
m2.eichen()
#m1.vorwaerts(10)
#m1.stop()

View File

@ -108,6 +108,7 @@ class motor():
for i in range(int(schritte)):
if GPIO.input(self.endschalter) == GPIO.LOW:
print('Endschalter ' + self.name)
self.pos = 0
break
else: