Closed GoogleCodeExporter closed 9 years ago
when using xfer, you are supposed to use binary and provide a binary array, not
a string.
try to use spi.xfer([0x00]) instead
Original comment by tro...@trouch.com
on 13 Jan 2014 at 9:53
Hi Eric,
you're right. It was PEBCAK. I'm quite new to Python in general and WebIOPi in
particular. I can confirm that it's working the suggested way. Denoting all
strings as byte strings (b'GET_STATUS' as well as b'\n') does the job. If you
feel like you may consider adding a respective check in spi.py for this
particular case (just in case I'm not the only newbie stumbling upon this) ;-)
Thanks for the quick support and keep up the good work! :-)
Original comment by markus.d...@googlemail.com
on 13 Jan 2014 at 8:41
Fine, so I close the issue
Original comment by tro...@trouch.com
on 13 Jan 2014 at 9:07
Original issue reported on code.google.com by
markus.d...@googlemail.com
on 13 Jan 2014 at 9:08