ADS1015 library
Diff: ads1015.h
- Revision:
- 1:fa7b90993eb3
- Parent:
- 0:b3c2afab9578
- Child:
- 2:2407708483f4
--- a/ads1015.h Thu Jan 26 17:00:38 2017 +0000 +++ b/ads1015.h Thu Jan 26 17:31:08 2017 +0000 @@ -76,8 +76,9 @@ class ADS1015{ public: ADS1015(uint8_t i2c_addr, I2C* i2c_object, uint16_t adc_gain); + uint16_t read_single_channel(int ch); void write_16(uint8_t reg, uint16_t msg); - char read_8(uint8_t reg); + uint16_t read_16(uint8_t reg); private: uint8_t ADS1015_ADDR;