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

    UIFlow V1.12.8 Atom Lite RTC read error

    Bug Report
    3
    6
    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.
    • P
      Piet
      last edited by

      Using the block rtc read ["rtc_0" get rtc "seconds'] returns an error
      Desktop uiFlow V1.9.5 block rtc [in list] "rtc_0" get rtc [get # from end "0"] returns ok

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by

        Hello @Piet

        hmm, the block ["rtc_0" get rtc "seconds"] works fine for me with RTC unit connected to port A.

        My M5Atom lite is running firmware UIFlow v1.12.8 and I used Web UIFlow to test.

        from m5stack import *
        from m5ui import *
        from uiflow import *
        import unit
        
        rtc_0 = unit.get(unit.RTC8563, unit.PORTA)
        print(rtc_0.get_date_time(0))
        

        Did you verify the RTC unit is properly connected to port A?

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0
        • P
          Piet
          last edited by

          Hi Felix
          Thank you for replying...
          The following runs fine in the desktop IDE V1.9.5 and flashes the LED for the number of months so I know the rtc is set... n.b. not seconds in this example
          0_1700349502242_251fe05c-4f68-4435-87de-a42859f338a2-image.png
          Changing to the Web UIFlow all attemps of running the script with new read statement return an error.
          0_1700349861169_b1ed1c5e-4ff5-420f-9cf3-f18ef0d65d97-image.png
          0_1700349875957_02777762-32d9-4700-ab82-86fc5878a91e-image.png
          0_1700349896911_6f1d09c5-dfd3-4be1-9e1c-c6e8e428cc8e-image.png
          I believe that the the atom and the rtc are working correctly.
          The new python code in the Web UIFlow is (rtc_0.get_date_time(2)) where as in the desktop UIFlow it is (rtc_0.get_date_time())[-3]

          P 1 Reply Last reply Reply Quote 0
          • felmueF
            felmue
            last edited by

            Hello @Piet

            not sure what's going on. I can read hours, minutes and seconds just fine. Below code runs without error for me.

            from m5stack import *
            from m5ui import *
            from uiflow import *
            import unit
            
            rtc_0 = unit.get(unit.RTC8563, unit.PORTA)
            
            print(rtc_0.get_date_time(2))
            print(rtc_0.get_date_time(1))
            print(rtc_0.get_date_time(0))
            

            Which UIFlow firmware version is installed on your M5Atom Lite? I have UIFlow firmware v1.12.8 running on my M5Atom Lite.

            Thanks
            Felix

            GPIO translation table M5Stack / M5Core2
            Information about various M5Stack products.
            Code examples

            1 Reply Last reply Reply Quote 0
            • P
              pandian.nano @Piet
              last edited by

              @piet
              Do not use the desktop version uiflow firmware, it is discontinued, please use the new update firmware[v1.12.8] via the m5burner

              0_1700447132233_9777c014-8332-491c-8d07-c961836891a4-image.png

              P 1 Reply Last reply Reply Quote 0
              • P
                Piet @pandian.nano
                last edited by

                @pandian-nano
                Hi Felix and Pandian
                I am sorry. I was using an old M5Burner.
                Flashing with the M5Burner V1.12.8 and using the Web UIFlow everythings is working
                Thank you for your help
                kind regards piet

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