pins change for LPC1114FN28
Fork of DAC by
Diff: DAC_SPI.cpp
- Revision:
- 2:4c97b3c044ec
- Parent:
- 1:679fa19d91b2
--- a/DAC_SPI.cpp Tue Jul 16 05:52:01 2013 +0000 +++ b/DAC_SPI.cpp Tue Aug 25 21:20:45 2015 +0000 @@ -4,17 +4,17 @@ #include "DAC_SPI.h" /*SPI Channels */ //since we only have two SPI channels, which must be shared, define them here. -SPI SPI_A(p5, NC, p7); //If using with other serial devices, can pass a pointer to the serial channel. -SPI SPI_B(p11, NC, p13); +SPI SPI_A(dp2, NC, dp6); //If using with other serial devices, can pass a pointer to the serial channel. +//SPI SPI_B(p11, NC, p13); /*Initialize DAC */ DAC_SPI::DAC_SPI(int SPIchannelNum, PinName _CS, PinName _LDAC) : CS(_CS), LDAC(_LDAC){ - if (SPIchannelNum ==1){ - DACspi = &SPI_B; - } - else{ + //if (SPIchannelNum ==1){ + // DACspi = &SPI_B; + //} + //else{ DACspi = &SPI_A; - } + //} messageBits(16); }