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

    Object has no attribute - Error

    Scheduled Pinned Locked Moved UIFlow
    4 Posts 2 Posters 5.3k Views
    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.
    • RIDDSprojectsR Offline
      RIDDSprojects
      last edited by

      It's very simple. The steps I do:

      1. Add unit (+) in UIFlow
      2. Add DIGI-CLOCK, default setting (Port A)
        2b. OK
      3. Open tap 'Units (1)' (under 'Hardwares') > Digi Clock
      4. Get block 'digi_clock_0 init 12c address (0x30).
      5. Run

      Error: File "<string>", line 8, in <module>
      AttributeError: 'module' object has no attribute 'DIGI_CLOCK'

      1. Add other blocks; does not matter
      2. Grab another controller; makes no difference (also error).

      Controlling directly with I2C is possible:
      (remove unit)
      Tap 'Hardwares', I2C Master:
      Block 1: i2c0 Master portA freq 400000
      Block 2: i2c0 Set slave addr 0x30
      Block 3: i2c0 Write reg 0x4 one byte 0xFF
      Display result: 8. (and no error!)

      Who can help me or has an addition?

      ATOM LITE | ATOM MATRIX | CORE | CORE2 | STAMP-PICO | CORE.INK | PAPER V1.1
      RESEARCH | INNOVATION | DEVELOPMENT | DESIGN | SUSTAINABILITY
      and electronics

      Nederland

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

        Hello @RIDDSprojects

        is your M5Stack running the latest UiFlow firmware (v1.10.9)? You can install it with M5Burner v3.0.

        Thanks
        Felix

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

        1 Reply Last reply Reply Quote 2
        • RIDDSprojectsR Offline
          RIDDSprojects
          last edited by

          Dear Felix,
          You helped me a lot! I had already looked several times for a firmware update, but it got stuck at v1.9.8. Thanks for your tip to use M5Burner Version 3 - I used M5Burner Version 2.5.1 myself. Confusing, but now clear! With, now v1.11.0, it works well!
          Thank you! Also for your very quick response.

          ATOM LITE | ATOM MATRIX | CORE | CORE2 | STAMP-PICO | CORE.INK | PAPER V1.1
          RESEARCH | INNOVATION | DEVELOPMENT | DESIGN | SUSTAINABILITY
          and electronics

          Nederland

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

            Hello @RIDDSprojects

            you are very welcome. I am glad to read it works for you now. And thank you for reporting back.

            Best of luck with your projects.

            Thanks
            Felix

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

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post