The MCP2210() constructor accepts keyword arguments vid, pid and path. With no args given, vid and pid default to MCP2210_VID = 0x04d8 and MCP2210_PID = 0x00de, i.e. the values for the MCP2210. If you have multiple MCP2210 devices on your USB chain, the path keyword lets you name a specific MCP2210 on the chain.
dev.eeprom now works under Python3, reading and writing unsigned 8-bit ints (and arrays of ints). Have not tested for compatibility under Python2.x (but that's becoming increasingly irrelevant).
Smaller changes:
Added a unittest test file to cover the above changes.
Touched up ReadMe.md to reflect the changes above and updated print() syntax for Python3.
Building upon Lukas K's fork at https://github.com/carrotIndustries:
Larger changes:
MCP2210()
constructor accepts keyword argumentsvid
,pid
andpath
. With no args given,vid
andpid
default toMCP2210_VID = 0x04d8
andMCP2210_PID = 0x00de
, i.e. the values for the MCP2210. If you have multiple MCP2210 devices on your USB chain, thepath
keyword lets you name a specific MCP2210 on the chain.dev.eeprom
now works under Python3, reading and writing unsigned 8-bit ints (and arrays of ints). Have not tested for compatibility under Python2.x (but that's becoming increasingly irrelevant).Smaller changes:
print()
syntax for Python3.