rtc.py

# Ce travail est publié sous licence MIT.
# Copyright (c) 2013-2023 OpenMV LLC. Tous droits réservés.
# https://github.com/openmv/openmv/blob/master/LICENSE
#
# Exemple RTC
#
# Cet exemple montre comment utiliser le RTC.
import time
from machine import RTC

rtc = RTC()
rtc.datetime((2013, 7, 9, 2, 0, 0, 0, 0))

while True:
    print(rtc.datetime())
    time.sleep_ms(1000)

results matching ""

    No results matching ""