Sakai Ritaro / MCP4922
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MCP4922.h Source File

MCP4922.h

00001 #include "mbed.h"
00002 
00003 class MCP4922
00004 {
00005 public:
00006     MCP4922(PinName MOSI,PinName SCK,PinName CS,PinName LDAC);
00007     void write(int ch,float value);
00008 private:
00009     SPI dac_SPI;
00010     DigitalOut dac_cs;
00011     DigitalOut dac_l;
00012 };