Skip to content

Commit

Permalink
fixed ads mosfet syntax issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Zontex committed Feb 23, 2021
1 parent 6fa3f3a commit 4ed32bc
Show file tree
Hide file tree
Showing 3 changed files with 3 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.5"
__version__ = "1.0.6"
2 changes: 1 addition & 1 deletion Eduponics/ads1x15.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,5 @@ def read(self,pin):
raw = self.read_raw(channel1=pin)
voltage = self.raw_to_v(raw)
# deactivate mosfet after use
self.mcp.pin(self.mcp_pins_sheet[pin], mode=0, value=0)
self.mcp.pin(self.mcp_pins_sheet[pin], mode=0, value=1)
return {"raw":raw,"voltage":voltage}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
packages=find_packages(),
include_package_data=True,
version=__version__,
download_url = 'https://github.com/STEMinds/micropython-eduponics/archive/1.0.4.tar.gz',
download_url = 'https://github.com/STEMinds/micropython-eduponics/archive/1.0.6.tar.gz',
keywords = ['micropython','upython', 'eduponics-mini', 'esp32', 'ADS1x15', 'MCP23017'],
description='',
long_description='',
Expand Down

0 comments on commit 4ed32bc

Please sign in to comment.