From 220cd6610daca9f6a71e9bdf809d8fe107b89f81 Mon Sep 17 00:00:00 2001 From: Bernd Reuther Date: Thu, 4 Mar 2021 14:43:04 +0100 Subject: [PATCH] motor test --- kamera_server.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kamera_server.py b/kamera_server.py index 06c5cf8..9694e5b 100644 --- a/kamera_server.py +++ b/kamera_server.py @@ -2,6 +2,7 @@ import RPi.GPIO as GPIO from flask import Flask, render_template, request from src.einstellungen import * from src.schrittmotor import motor +import time kamera_server = Flask(__name__) @@ -25,6 +26,11 @@ m2 = motor('kippen', m2_a1, m2_b1, m2_a2, m2_b2, m2_t1, m2_t2, m2_te, m2_es, 1, m1.start() m2.start() +time.sleep(5) + +m1.stop() +m2.stop() + print(dir(m2.pwm4)) print(dir(m3_pwm4))