🤖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]

    UiFlow 2.0
    3
    3
    1.1k
    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
      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
        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
          lbuque
          last edited by

          @Slater This bug is not reproduced in uiflow 2.0.1

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