[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.