from machine import I2C, Pin
import ds3231

i2c = I2C(0, scl=Pin(21), sda=Pin(20))  # Adjust pins if needed
rtc = ds3231.DS3231(i2c)

# Set the RTC to the current date and time (YYYY, MM, DD, HH, MM, SS)
rtc.set_datetime(2025, 3, 9, 15, 30, 0)  # Example: March 9, 2025, 3:30 PM
print("RTC Time Set!")
