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

    ***Bug*** ERROR use RGB - Freezes after loop execution: 54 times [Alpha-29, AtomS3-lite]

    Scheduled Pinned Locked Moved UiFlow 2.0
    3 Posts 3 Posters 1.9k 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.
    • S Offline
      Slater
      last edited by

      0_1705172014704_error_LED.png

      def loop():
      global rgb, i
      M5.update()
      i = (i if isinstance(i, (int, float)) else 0) + 1
      print(i)
      rgb.fill_color(0x33ff33)

      _________ error ________
      52
      53
      54
      Traceback (most recent call last):
      File "<stdin>", line 24, in <module>
      File "<stdin>", line 19, in loop
      File "driver/neopixel/init.py", line 87, in fill_color
      File "driver/neopixel/init.py", line 50, in write
      OSError: [Errno 1] EPERM: ESP_FAIL


      0_1705172191698_error_LED — code.png

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

        Hello @Slater

        try adding a Sleep 100 microseconds block after rgb fill color block to slow down the loop. Works for me.

        Thanks
        Felix

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

        1 Reply Last reply Reply Quote 0
        • lbuqueL Offline
          lbuque
          last edited by

          @Slater This bug is not reproduced in uiflow 2.0.1

          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