rtc.py

# Questo lavoro è concesso in licenza MIT.
# Copyright (c) 2013-2024 OpenMV LLC. Tutti i diritti riservati.
# https://github.com/openmv/openmv/blob/master/LICENSE
#
# Esempio RTC
#
# Questo esempio mostra come usare l'RTC.

import time
from machine import RTC

rtc = RTC()

# Commentare questa riga per inizializzare l'ora e la data dell'RTC.
# Dopo aver fatto ciò, l'RTC manterrà l'ora finché
# il sistema non perde completamente l'alimentazione.
# rtc.init((2023, 8, 8, 14, 15, 0, 0, 0))

while True:
    time.sleep_ms(100)
    print(rtc.now())

results matching ""

    No results matching ""