[SOLVED] Hi All I'm suffering a stupid moment.
-
Why is it that this code work on a RPI and An M5Stamp C3 but not and ESp32 Pico D4 found in the stick family running MP1.19.1 (mainstream)?
# Imports import time from machine import Pin from neopixel import NeoPixel # Define the strip pin number (28) and number of LEDs (15) strip = NeoPixel(Pin(28), 15) # Variable for the fade speed delay = 0.005 while True: # Run forever # Iterate from 1 to 255 in steps of 1 for i in range(1,255,1): # Fill the strip using the iterated R value strip.fill((i,0,0)) # Write the data to the LED strip strip.write() # Delay time.sleep(delay) # iterate from 255 to 1 in steps of -1 for i in range(255,1,-1): # Fill the strip using the iterated R value strip.fill((i,0,0)) # Write the data to the LED strip strip.write() # Delay time.sleep(delay)Ok solved it. The issue was due to power supply issues.
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