12bit 8ch ADC with SWSPI instead to support variable SPI bit length
Fork of MCP3208_Y by
Diff: mcp3208.h
- Revision:
- 3:08c7702773b6
- Parent:
- 2:701c3096336e
--- 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;