Skip to content

Instantly share code, notes, and snippets.

@Mango-kid
Created August 31, 2016 15:53
Show Gist options
  • Save Mango-kid/521f7898d9781c62d893adf486cc9f0c to your computer and use it in GitHub Desktop.
Save Mango-kid/521f7898d9781c62d893adf486cc9f0c to your computer and use it in GitHub Desktop.
#!/usr/bin/python3
#setup the slushengine
import Slush
b = Slush.sBoard()
#setup a few different motors, this can also be done in an array
m0 = Slush.Motor(0)
m1 = Slush.Motor(1)
m2 = Slush.Motor(2)
m3 = Slush.Motor(3)
#spin each motor at a differect speed
m0.run(1, 300)
m1.run(0, 100)
m2.run(0, 10)
m3.goTo(-10000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment