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

Fork of MCP3208_Y by Michael Chuah

Files at this revision

API Documentation at this revision

Comitter:
mcx
Date:
Thu Apr 06 19:25:29 2017 +0000
Parent:
2:701c3096336e
Commit message:
MCP3208 library using SWSPI to support variable SPI bit length

Changed in this revision

mcp3208.h Show annotated file Show diff for this revision Revisions of this file
diff -r 701c3096336e -r 08c7702773b6 mcp3208.h
--- a/mcp3208.h	Fri Feb 20 17:53:27 2015 +0000
+++ b/mcp3208.h	Thu Apr 06 19:25:29 2017 +0000
@@ -6,9 +6,11 @@
 
 #include <mbed.h>
 
+#include "SWSPI.h"
+
 class MCP3208 {
   protected:
-    SPI _spi;
+    SWSPI _spi;
     DigitalOut _cs;
     float _vref;