Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zontex committed Feb 23, 2021
1 parent 2611ea9 commit e57225d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Eduponics/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.2"
__version__ = "1.0.3"
2 changes: 1 addition & 1 deletion Eduponics/ads1x15.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def __init__(self, i2c, address=0x48, gain=1, mcp_address=0x20):
self.gain = gain
self.temp2 = bytearray(2)
# define MCP for activating MOSFET pins
mcp = mcp23017.MCP23017(self.i2c, address=mcp_address)
mcp = mcp23017.MCP23017(i2c=self.i2c, address=mcp_address)
# define all the pins for the mosfets
self.mcp_pins_sheet = {
0:8,
Expand Down
3 changes: 2 additions & 1 deletion Eduponics/tds.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
class TDS():

def __init__(self, channel=0, temperature=25, i2c=None, mcp_address=0x20, ads_address=0x49):
self.i2c = i2c
self.channel = channel
self.kvalue = 1.0
self.temperature = temperature
Expand All @@ -42,7 +43,7 @@ def __init__(self, channel=0, temperature=25, i2c=None, mcp_address=0x20, ads_ad
self.ads_address = ads_address
self.mcp_address = mcp_address
self.gain = 1
self.adc = ads1x15.ADS1115(i2c, address=self.ads_address, mcp_address=self.mcp_address, self.gain)
self.adc = ads1x15.ADS1115(i2c=self.i2c, address=self.ads_address, mcp_address=self.mcp_address, gain=self.gain)

def overwrite_buffer(self, item):
self.values_buffer.insert(0, item)
Expand Down

0 comments on commit e57225d

Please sign in to comment.