12bit 8ch ADC with SWSPI instead to support variable SPI bit length

Fork of MCP3208_Y by Michael Chuah

Revision:
2:701c3096336e
Parent:
1:0876e83ba21b
Child:
3:08c7702773b6
--- 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;}