From 2ad88bf305973f3fd346f031c18c614e6a3b0b32 Mon Sep 17 00:00:00 2001 From: Bernd Reuther Date: Thu, 4 Mar 2021 15:40:40 +0100 Subject: [PATCH] motor eichen --- kamera_server.py | 1 + src/schrittmotor.py | 1 + 2 files changed, 2 insertions(+) diff --git a/kamera_server.py b/kamera_server.py index 8cf5a5e..3d45219 100644 --- a/kamera_server.py +++ b/kamera_server.py @@ -27,6 +27,7 @@ m1.start() m2.start() m1.eichen() +m2.eichen() #m1.vorwaerts(10) #m1.stop() diff --git a/src/schrittmotor.py b/src/schrittmotor.py index b1be2ca..b08dd2d 100644 --- a/src/schrittmotor.py +++ b/src/schrittmotor.py @@ -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: