some fixes, strange zeros in between

This commit is contained in:
hg
2014-11-05 19:19:20 +01:00
parent d16530898e
commit ed17033c78
4 changed files with 14 additions and 26 deletions

View File

@ -10,7 +10,7 @@
class ADS1210 {
public:
ADS1210() : value(0);
ADS1210() : value(0) {};
void begin(uint8_t csPin, uint8_t drdyPin);
void exec();
@ -55,11 +55,11 @@ private:
const uint8_t CMD_MD_Sleep = 0xc0;
const uint8_t CMR_Gain_Mask = (0x07 << 2);
const uint8_t CMD_Gain_1 = 0;
const uint8_t CMD_Gain_2 = (0x01 << 2);
const uint8_t CMD_Gain_4 = (0x02 << 2);
const uint8_t CMD_Gain_8 = (0x03 << 2);
const uint8_t CMD_Gain_16 = (0x04 << 2);
const uint8_t CMR_Gain_1 = 0;
const uint8_t CMR_Gain_2 = (0x01 << 2);
const uint8_t CMR_Gain_4 = (0x02 << 2);
const uint8_t CMR_Gain_8 = (0x03 << 2);
const uint8_t CMR_Gain_16 = (0x04 << 2);
// bit values
// INSR