Skip to content

Instantly share code, notes, and snippets.

@wyojustin
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wyojustin/32a4b05389a1f73449cb to your computer and use it in GitHub Desktop.
Save wyojustin/32a4b05389a1f73449cb to your computer and use it in GitHub Desktop.
## For raspberry pi Model B
## edit DS3231.py
### was (Model A version)
class DS3231:
def __init__(self):
self.ds3231 = Adafruit_I2C(DS3231_I2C_ADDR)
### change to new Model B version
class DS3231:
def __init__(self):
self.ds3231 = Adafruit_I2C(DS3231_I2C_ADDR, bus=smbus.SMBus(1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment