Skip to content

Commit 05225dc

Browse files
committed
testing
1 parent c9440eb commit 05225dc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ADS1115/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,15 @@ def getPiRevision():
206206
@staticmethod
207207
def getPiI2CBusNumber():
208208
# Gets the I2C bus number /dev/i2c#
209-
return 1 if Adafruit_I2C.getPiRevision() > 1 else 0
209+
return 1 if getPiRevision() > 1 else 0
210210

211211
def __init__(self, address, busnum=-1, debug=False):
212212
self.address = address
213213
# By default, the correct I2C bus is auto-detected using /proc/cpuinfo
214214
# Alternatively, you can hard-code the bus version below:
215215
# self.bus = smbus.SMBus(0); # Force I2C0 (early 256MB Pi's)
216216
# self.bus = smbus.SMBus(1); # Force I2C1 (512MB Pi's)
217-
self.bus = smbus.SMBus(busnum if busnum >= 0 else Adafruit_I2C.getPiI2CBusNumber())
217+
self.bus = smbus.SMBus(busnum if busnum >= 0 else getPiI2CBusNumber())
218218
self.debug = debug
219219

220220
def reverseByteOrder(self, data):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from distutils.core import setup
1212

1313
setup(name='ADS1115',
14-
version='0.1.2',
14+
version='0.1.3',
1515
description='Python library for interacting with the ADS1115 Analog to Digital Converter.',
1616
url='http://github.com/dhhagan/Adafruit-Raspberry-Pi-Python-Code',
1717
author='David H Hagan',

0 commit comments

Comments
 (0)