Skip to content

Instantly share code, notes, and snippets.

@collinalexbell
Last active August 6, 2017 01:41
Show Gist options
  • Save collinalexbell/1639a82590fa3de141b4c39baefaa601 to your computer and use it in GitHub Desktop.
Save collinalexbell/1639a82590fa3de141b4c39baefaa601 to your computer and use it in GitHub Desktop.
structure_move.py
import serial
import time
ser = serial.Serial("/dev/ttyACM0")
time.sleep(2)
def write_pos(z,y):
ser.write(0)
ser.write(y)
ser.write(1)
ser.write(z)
write_pos(70,70)
ser.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment