File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -206,15 +206,15 @@ def getPiRevision():
206
206
@staticmethod
207
207
def getPiI2CBusNumber ():
208
208
# 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
210
210
211
211
def __init__ (self , address , busnum = - 1 , debug = False ):
212
212
self .address = address
213
213
# By default, the correct I2C bus is auto-detected using /proc/cpuinfo
214
214
# Alternatively, you can hard-code the bus version below:
215
215
# self.bus = smbus.SMBus(0); # Force I2C0 (early 256MB Pi's)
216
216
# 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 ())
218
218
self .debug = debug
219
219
220
220
def reverseByteOrder (self , data ):
Original file line number Diff line number Diff line change 11
11
from distutils .core import setup
12
12
13
13
setup (name = 'ADS1115' ,
14
- version = '0.1.2 ' ,
14
+ version = '0.1.3 ' ,
15
15
description = 'Python library for interacting with the ADS1115 Analog to Digital Converter.' ,
16
16
url = 'http://github.com/dhhagan/Adafruit-Raspberry-Pi-Python-Code' ,
17
17
author = 'David H Hagan' ,
You can’t perform that action at this time.
0 commit comments