<[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 exactly sure how to do it in Python.

Use a string type. output = chr(x) + chr(y) + chr(z)  for example.
There is no restriction on null bytes in strings, so they are
appropriate for binary data. 


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to