From 8aad41d936bed778c76b489be88d0e4f4e61c050 Mon Sep 17 00:00:00 2001 From: Bernd Reuther Date: Thu, 4 Mar 2021 12:19:36 +0100 Subject: [PATCH] motor test --- kamera_server.py | 2 +- src/schrittmotor.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kamera_server.py b/kamera_server.py index d045ba9..fa15710 100644 --- a/kamera_server.py +++ b/kamera_server.py @@ -69,7 +69,7 @@ def action(changePin, action): @kamera_server.route("/motor1_test") def motor_test(): m1.vorwaerts(10) - print('Motortest') + #print('Motortest') # Pass the template data into the template main.html and return it to the user return 'fertig' diff --git a/src/schrittmotor.py b/src/schrittmotor.py index 7855038..88d5669 100644 --- a/src/schrittmotor.py +++ b/src/schrittmotor.py @@ -53,6 +53,7 @@ class motor: def vorwaerts(self, schritte): ges_schritte = schritte * 8 + print(str(ges_schritte)) if self.halten == 1: self.pwm4.ChangeFrequency(freq)