12bit 8ch ADC with SPI interface
Fork of MCP3208 by
Revision 2:701c3096336e, committed 2015-02-20
- Comitter:
- mcx
- Date:
- Fri Feb 20 17:53:27 2015 +0000
- Parent:
- 1:0876e83ba21b
- Commit message:
Changed in this revision
mcp3208.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/mcp3208.h Wed Oct 24 05:52:21 2012 +0000 +++ b/mcp3208.h Fri Feb 20 17:53:27 2015 +0000 @@ -13,7 +13,7 @@ float _vref; public: - MCP3208(PinName mosi=p11, PinName miso=p12, PinName clk=p13, PinName cs=p14); + MCP3208(PinName mosi, PinName miso, PinName clk, PinName cs); int binary(int ch); float volt(int ch); float vref(float v){return _vref=v;}