arachnidlabs / mcp2210

Python library for interfacing with the MCP2210 USB-SPI interface.
BSD 2-Clause "Simplified" License
26 stars 18 forks source link

The library was hanging on windows machines. It was also not working with python 3. #13

Open bddap opened 9 years ago

bddap commented 9 years ago

Thought you might want to reap the benefits of my debugging and hair pulling. I found and fixed two main issues:

  1. Python 3 does not support buffer()
  2. Windows requires an extra null byte at the beginning of each hid.write() buffer.

I tested with Python 3.4 on Windows 7 talking to a spi device.