This commit is contained in:
Bernd Reuther 2021-10-17 13:58:58 +02:00
parent 65d2fbd2de
commit a96c52edbc

View File

@ -106,6 +106,7 @@ class motor():
pi.set_PWM_frequency(self.sp4, self.freq)
for i in range(int(schritte)):
print('Kamera Motor ' + self.name + ' Schritt ' + str(i))
if pi.read(self.endschalter) == 0:
print('Endschalter ' + self.name)
self.pos = 0