35 #define ADS1015_CONVERSIONDELAY (8000)
44 #define ADS1015_DR_MASK (0x00E0)
45 #define ADS1015_DR_128SPS (0x0000) // 128 samples per second
46 #define ADS1015_DR_250SPS (0x0020) // 250 samples per second
47 #define ADS1015_DR_490SPS (0x0040) // 490 samples per second
48 #define ADS1015_DR_920SPS (0x0060) // 920 samples per second
49 #define ADS1015_DR_1600SPS (0x0080) // 1600 samples per second (default)
50 #define ADS1015_DR_2400SPS (0x00A0) // 2400 samples per second
51 #define ADS1015_DR_3300SPS (0x00C0) // 3300 samples per second
103 SPS_128 = ADS1015_DR_128SPS,
104 SPS_250 = ADS1015_DR_250SPS,
105 SPS_490 = ADS1015_DR_490SPS,
106 SPS_920 = ADS1015_DR_920SPS,
107 SPS_1600 = ADS1015_DR_1600SPS,
108 SPS_2400 = ADS1015_DR_2400SPS,
109 SPS_3300 = ADS1015_DR_3300SPS
119 ADS1015 (
int bus, uint8_t address = 0x48);
136 float getMultiplier(
void);
ADSSAMPLERATE
uint16_t enum containing values representing the sample rate of the device.
Definition: ads1015.h:102
Definition: ads1x15.h:113
void setSPS(ADSSAMPLERATE rate=SPS_1600)
Definition: ads1015.cxx:29
API for ADS1015.
Definition: ads1015.h:85
~ADS1015()
Definition: ads1015.cxx:40
ADS1015(int bus, uint8_t address=0x48)
Definition: ads1015.cxx:33