From ed0b7acf6c672043befd184e37f2f49c9b00a021 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Fri, 25 Aug 2017 17:37:14 +0200 Subject: [PATCH] Select a motor and rotate it. --- curtains/cli.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/curtains/cli.py b/curtains/cli.py index e69de29..67725d0 100644 --- a/curtains/cli.py +++ b/curtains/cli.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# @Author: KevinMidboe +# @Date: 2017-08-25 12:33:01 +# @Last Modified by: KevinMidboe +# @Last Modified time: 2017-08-25 17:35:33 + +from stepper import Stepper + +def main(): + leftMotor = stepper([17, 18, 27, 22]) + leftMotor.step(2, 'Left') + leftMotor.cleanGPIO() + +if __name__ == '__main__': + main() \ No newline at end of file