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

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

-
Hello @Slater
try adding a
Sleep 100 microsecondsblock afterrgb fill colorblock to slow down the loop. Works for me.Thanks
Felix -
@Slater This bug is not reproduced in uiflow 2.0.1
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