Select a motor and rotate it.

This commit is contained in:
2017-08-25 17:37:14 +02:00
parent 7451362d40
commit ed0b7acf6c

View File

@@ -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()