Advertisement
j0h

not working

j0h
Dec 8th, 2014
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. #!/usr/bin/python
  2. from array import array
  3. import serial, sys
  4. i = 3
  5. ser = serial.Serial('/dev/ttyACM0', 9600)
  6. a=array('i')
  7.  
  8. a.append(int(sys.argv[1]))
  9. a.append(int(sys.argv[2]))
  10. a.append(int(sys.argv[3]))
  11.  
  12. for i in range(0, 3):
  13.         if not all(0 <= argv <= 180 for argv in sys.argv): sys.exit(0)
  14.         else: print(a[i])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement