kidoman / embd

Embedded Programming Framework in Go
http://embd.kidoman.io
MIT License
1.28k stars 156 forks source link

Adding Support for MCP3208 (12 bit version of MCP3008) #47

Open npotts opened 8 years ago

npotts commented 8 years ago

I have hacked in support for a MCP3204/8 (12 bit version of MCP3004/8), and I am wondering if i should add it into the MCP3008 struct, or make a copy of the 3008 - Per the datasheets precious little else is different. On RPi2+, this also needs the patch from #24

I am open trying to generalize the current MCP3008 driver, but I just haven't researched the realm of other chip-sets that have a similar interface.