motor test
This commit is contained in:
parent
1423da5638
commit
8aad41d936
@ -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'
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user