ADS1115 is a precision analog-to-digital converter (ADC) with 16 bits of resolution.
The ADS1115 features an onboard reference and oscillator. Data is transferred via an I2C serial interface.
The ADS1115 can perform conversions at rates up to 860 samples per second (SPS).
Both large and small signals to be measured with high resolution ranging from 156mV to 3.3V. etc.
Driver
If you haven’t already done that, download BH drivers and demo code like this:
git clone https://github.com/bithollow/BH
cd BH/driver
Move to folder BH/driver/, you will find the adc driver: ads1115.h ads1115.cpp
Demo
adc example
Move to folder BH/demo/adc, compile and run the example
cd BH/demo/adc
make
./adc -h
the usage will display while executing above command.