Library for MCP4822 SPI 12-bit DAC, both outputs supported, nLDAC connected to GND.
Diff: MCP4822.h
- Revision:
- 11:96eff565b2c0
- Parent:
- 10:d1edaa2e2905
diff -r d1edaa2e2905 -r 96eff565b2c0 MCP4822.h --- a/MCP4822.h Fri Jan 21 16:33:25 2011 +0000 +++ b/MCP4822.h Mon Jan 31 07:22:18 2011 +0000 @@ -45,6 +45,16 @@ * @param ValueB The valkue to be written */ void writeB (int ValueB); + /** Write to any output, accoding to letter. + * + * + */ + void write(char chan, int value); + /** Shutdown the output on specific channel + * + * + */ + void shdn(); private : SPI _spi;