motor test

This commit is contained in:
Bernd Reuther 2021-03-04 12:19:36 +01:00
parent 1423da5638
commit 8aad41d936
2 changed files with 2 additions and 1 deletions

View File

@ -69,7 +69,7 @@ def action(changePin, action):
@kamera_server.route("/motor1_test") @kamera_server.route("/motor1_test")
def motor_test(): def motor_test():
m1.vorwaerts(10) m1.vorwaerts(10)
print('Motortest') #print('Motortest')
# Pass the template data into the template main.html and return it to the user # Pass the template data into the template main.html and return it to the user
return 'fertig' return 'fertig'

View File

@ -53,6 +53,7 @@ class motor:
def vorwaerts(self, schritte): def vorwaerts(self, schritte):
ges_schritte = schritte * 8 ges_schritte = schritte * 8
print(str(ges_schritte))
if self.halten == 1: if self.halten == 1:
self.pwm4.ChangeFrequency(freq) self.pwm4.ChangeFrequency(freq)