Last active
August 29, 2015 14:18
-
-
Save wyojustin/32a4b05389a1f73449cb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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