We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
`from machine import Pin, SoftI2C from ds3231 import DS3231 import time
i2c = SoftI2C(sda=Pin(4), scl=Pin(5))
ds = DS3231(i2c) print(ds.datetime()) year = 2020 # Can be yyyy or yy format month = 10 mday = 3 hour = 13 # 24 hour format only minute = 55 second = 30 # Optional weekday = 6 # Optional
datetime = (year, month, mday, hour, minute, second, weekday) ds.datetime(datetime) print(ds.datetime())`
result(thonny): MPY: soft reboot (2000, 0, 0, 0, 0, 0, 0, 0) (2000, 0, 0, 0, 0, 0, 0, 0)
board:
thank you for your shareing.the ide do not show any tips,can you give me some help,thank you
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Please use code blocks to post code.
No branches or pull requests
`from machine import Pin, SoftI2C
from ds3231 import DS3231
import time
i2c = SoftI2C(sda=Pin(4), scl=Pin(5))
ds = DS3231(i2c)
print(ds.datetime())
year = 2020 # Can be yyyy or yy format
month = 10
mday = 3
hour = 13 # 24 hour format only
minute = 55
second = 30 # Optional
weekday = 6 # Optional
datetime = (year, month, mday, hour, minute, second, weekday)
ds.datetime(datetime)
print(ds.datetime())`
result(thonny):
MPY: soft reboot
(2000, 0, 0, 0, 0, 0, 0, 0)
(2000, 0, 0, 0, 0, 0, 0, 0)
board:
thank you for your shareing.the ide do not show any tips,can you give me some help,thank you
The text was updated successfully, but these errors were encountered: