fixes in config stuff

This commit is contained in:
hg
2014-11-16 18:45:13 +01:00
parent 70d589da45
commit cb329623af
5 changed files with 13 additions and 4 deletions

View File

@ -97,11 +97,12 @@ void ADS1210::setGain(uint8_t gain) const {
writeRegister(ADDR_CMR2, cmr);
}
void ADS1210::begin(uint8_t csPin, uint8_t drdyPin) {
void ADS1210::begin(uint8_t csPin, uint8_t drdyPin, int eepromAddr) {
static bool onlyOnce = false;
m_csPin = csPin;
m_drdyPin = drdyPin;
m_eepromAddr = eepromAddr;
// initialization of SPI
// Serial << "Start SPI initialization ... ";