serial port servo control

Scott David Daniels scott.daniels at acm.org
Fri Jun 23 19:56:14 CEST 2006


Several have suggested struct, I'd suggest you look at array:
     import array
     v = array.array('B', [1, 2, 3])
     for i in range(17):
         v[i % 3] *= max(1, i // 3)
     v.tostring()

--Scott David Daniels
scott.daniels at acm.org



More information about the Python-list mailing list