Skip to content

Commit

Permalink
Different deafult address for ads1115
Browse files Browse the repository at this point in the history
  • Loading branch information
Radomir Dopieralski committed Aug 22, 2016
1 parent cc42c21 commit f9deacd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ads1x15.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@


class ADS1115:
def __init__(self, i2c, address=0x48):
def __init__(self, i2c, address=0x49):
self.i2c = i2c
self.address = address
self.gain = 0 # 2/3 6.144V
Expand Down Expand Up @@ -124,6 +124,9 @@ def alert_read(self):


class ADS1015(ADS1115):
def __init__(self, i2c, address=0x48):
return super().__init__(i2c, address)

def read(self, channel):
return super().read(channel) >> 4

Expand Down

0 comments on commit f9deacd

Please sign in to comment.