motor eichen
This commit is contained in:
parent
cda9bffd2a
commit
2ad88bf305
@ -27,6 +27,7 @@ m1.start()
|
||||
m2.start()
|
||||
|
||||
m1.eichen()
|
||||
m2.eichen()
|
||||
|
||||
#m1.vorwaerts(10)
|
||||
#m1.stop()
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user