<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[SOLVED] Hi All I&#x27;m suffering a stupid moment.]]></title><description><![CDATA[<p dir="auto">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)?</p>
<pre><code># 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)

</code></pre>
<p dir="auto">Ok solved it. The issue was due to power supply issues.</p>
]]></description><link>https://community.m5stack.com/topic/4913/solved-hi-all-i-m-suffering-a-stupid-moment</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 13:17:25 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4913.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Dec 2022 18:31:34 GMT</pubDate><ttl>60</ttl></channel></rss>