Skip to content

Commit e57225d

Browse files
committed
bug fixes
1 parent 2611ea9 commit e57225d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Eduponics/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.2"
1+
__version__ = "1.0.3"

Eduponics/ads1x15.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __init__(self, i2c, address=0x48, gain=1, mcp_address=0x20):
121121
self.gain = gain
122122
self.temp2 = bytearray(2)
123123
# define MCP for activating MOSFET pins
124-
mcp = mcp23017.MCP23017(self.i2c, address=mcp_address)
124+
mcp = mcp23017.MCP23017(i2c=self.i2c, address=mcp_address)
125125
# define all the pins for the mosfets
126126
self.mcp_pins_sheet = {
127127
0:8,

Eduponics/tds.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
class TDS():
3333

3434
def __init__(self, channel=0, temperature=25, i2c=None, mcp_address=0x20, ads_address=0x49):
35+
self.i2c = i2c
3536
self.channel = channel
3637
self.kvalue = 1.0
3738
self.temperature = temperature
@@ -42,7 +43,7 @@ def __init__(self, channel=0, temperature=25, i2c=None, mcp_address=0x20, ads_ad
4243
self.ads_address = ads_address
4344
self.mcp_address = mcp_address
4445
self.gain = 1
45-
self.adc = ads1x15.ADS1115(i2c, address=self.ads_address, mcp_address=self.mcp_address, self.gain)
46+
self.adc = ads1x15.ADS1115(i2c=self.i2c, address=self.ads_address, mcp_address=self.mcp_address, gain=self.gain)
4647

4748
def overwrite_buffer(self, item):
4849
self.values_buffer.insert(0, item)

0 commit comments

Comments
 (0)