🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Can't import m5stack.rtc on firmware 1.6.6

    Micropython
    2
    2
    2.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dybber2
      last edited by

      Hi m5stack,

      On the newest version, 1.6.6, it's no longer possible to from m5stack import rtc

      >>> from m5stack import rtc
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      ImportError: can't import name rtc
      

      Has the real time clock module been renamed?

      1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3
        last edited by

        Looks like rtc is included in one of the other files

        from m5stack import *
        from m5ui import *
        from uiflow import *
        
        setScreenColor(0x111111)
        
        rtc.setTime(0, 0, 0, 0, 0, 0)

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post