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
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
On 22 Jun 2006 08:18:08 -0700, [EMAIL PROTECTED] wrote:
>So I ordered a mini SSC II (the servo controller), in order to
>control some servos from the computer. I was hoping to use python to
>do the control but have two questions...
>
>1) How should I write to the serial port with python? I found
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 1) How should I write to the serial port with python? I found the
> module "pyserial":
I don't think there is any need to hunt for anything better.
> In C I'd do this by sending 3 char's, as they're only 1 byte,
> but i'm not exactl
[EMAIL PROTECTED] schrieb:
> So I ordered a mini SSC II (the servo controller), in order to
> control some servos from the computer. I was hoping to use python to
> do the control but have two questions...
>
> 1) How should I write to the serial port with python? I found the
> module "pyserial":
So I ordered a mini SSC II (the servo controller), in order to
control some servos from the computer. I was hoping to use python to
do the control but have two questions...
1) How should I write to the serial port with python? I found the
module "pyserial":
http://pyserial.sourceforge.net/
on the