Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MCP3208 by
mcp3208.h
- Committer:
- mcx
- Date:
- 2015-02-20
- Revision:
- 2:701c3096336e
- Parent:
- 1:0876e83ba21b
File content as of revision 2:701c3096336e:
// // // #ifndef _MCP3208_H #define _MCP3208_H #include <mbed.h> class MCP3208 { protected: SPI _spi; DigitalOut _cs; float _vref; public: MCP3208(PinName mosi, PinName miso, PinName clk, PinName cs); int binary(int ch); float volt(int ch); float vref(float v){return _vref=v;} }; #endif //_MCP3208_H