[Tutor] sending hex data on port

Neil Schemenauer nas-pytut@python.ca
Wed Jun 18 15:10:04 2003


vicki@stanfield.net wrote:
> If I simply try to do this:
> 
> port.write(hex(18))
> 
> It translates the 1 to hex and then the 8 to hex. I
> realize this is quite simplistic, but it is really all
> I need to do. If I put '18', it complains about not
> being able to convert a hex value to a hex value.

What is the exact error you are seeing?  Do you get a Python traceback?
If so, can you post a copy?

  Neil