Commit 8bd7a8fe authored by Clement Remi's avatar Clement Remi
Browse files

Update ohmpi.py, change the ads gain to 2/3 by default.

Showing with 1 addition and 1 deletion
+1 -1
...@@ -103,7 +103,7 @@ class OhmPi(object): ...@@ -103,7 +103,7 @@ class OhmPi(object):
self.mcp = MCP23008(self.i2c, address=0x20) self.mcp = MCP23008(self.i2c, address=0x20)
# ADS1115 for current measurement (AB) # ADS1115 for current measurement (AB)
self.ads_current = ads.ADS1115(self.i2c, gain=16, data_rate=860, address=0x48) self.ads_current = ads.ADS1115(self.i2c, gain=2/3, data_rate=860, address=0x48)
# ADS1115 for voltage measurement (MN) # ADS1115 for voltage measurement (MN)
self.ads_voltage = ads.ADS1115(self.i2c, gain=2/3, data_rate=860, address=0x49) self.ads_voltage = ads.ADS1115(self.i2c, gain=2/3, data_rate=860, address=0x49)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment