<?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[Core2: WS2812 and interrupter]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I use a lot of own libraries to control my home. Last library was a small extension of Adafruit_NeoPixel to show some status information.</p>
<p dir="auto">I tested with four libraries (M5Core2.h, Wifi.h, Adafruit_NeoPixel.h and my lib) with a small test program with Arduino IDE and it worked fine. I used 16*16 led ws2812.</p>
<p dir="auto">Then a changed back to my ESP-IDF and use the some libraries and some more stuff. If I started to switch some less on my WS2812 in green color, it worked 4 or 5 times without problems. At the next one switching event I got a problem on the second half of the leds:</p>
<ul>
<li>
<p dir="auto">Some switch the color from green to blue</p>
</li>
<li>
<p dir="auto">Some led switch incorrect on</p>
</li>
</ul>
<p dir="auto">The first 100 to 120 leds all always correct.  I think it is a interrupt problem, but in then Adafruit_NeoPixel.h interrupts stopped. I double-checked if this part worked:</p>
<pre><code>  // NRF52 may use PWM + DMA (if available), may not need to disable interrupt
#if !( defined(NRF52) || defined(NRF52_SERIES) )
  noInterrupts(); // Need 100% focus on instruction timing
#endif
</code></pre>
<p dir="auto">I also stop interrupts im my library for the critical part, but it didn't work. My unfounded suspicion is a unstoppable interrupt in M5Core2.h or similar.</p>
<p dir="auto">Do anyone have an idea?</p>
]]></description><link>https://community.m5stack.com/topic/2661/core2-ws2812-and-interrupter</link><generator>RSS for Node</generator><lastBuildDate>Sat, 02 May 2026 10:59:52 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2661.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 Dec 2020 08:09:27 GMT</pubDate><ttl>60</ttl></channel></rss>