From e2867c327f78520da9bf58a7d4942fb8f4e22f7c Mon Sep 17 00:00:00 2001 From: Roudy Dagher Date: Wed, 16 Nov 2016 16:40:28 +0100 Subject: [PATCH] Renamed gain constants as per Datasheet --- wiringPi/ads1115.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wiringPi/ads1115.h b/wiringPi/ads1115.h index 5c91735..a06fa0e 100644 --- a/wiringPi/ads1115.h +++ b/wiringPi/ads1115.h @@ -26,12 +26,12 @@ // Gain -#define ADS1115_GAIN_6 0 -#define ADS1115_GAIN_4 1 +#define ADS1115_GAIN_TWO_THIRD 0 +#define ADS1115_GAIN_1 1 #define ADS1115_GAIN_2 2 -#define ADS1115_GAIN_1 3 -#define ADS1115_GAIN_HALF 4 -#define ADS1115_GAIN_QUARTER 5 +#define ADS1115_GAIN_4 3 +#define ADS1115_GAIN_8 4 +#define ADS1115_GAIN_16 5 // Data rate