MCPcopy Create free account
hub / github.com/FastLED/FastLED / showPixels

Function showPixels

src/platforms/esp/32/clockless_block_esp32.h:80–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 virtual int size() { return CLEDController::size() * LANES; }
79
80 virtual void showPixels(PixelController<RGB_ORDER, LANES, PORT_MASK> & pixels) FL_NOEXCEPT {
81 // mWait.wait();
82 /*u32 clocks = */
83 int cnt=FASTLED_INTERRUPT_RETRY_COUNT;
84 while(!showRGBInternal(pixels) && cnt--) {
85 // ets_intr_unlock();
86 interrupt_unlock();
87#ifdef FASTLED_DEBUG_COUNT_FRAME_RETRIES
88 ++_retry_cnt;
89#endif
90 delayMicroseconds(WAIT_TIME * 10);
91 // ets_intr_lock();
92 interrupt_lock();
93 }
94 // #if FASTLED_ALLOW_INTTERUPTS == 0
95 // Adjust the timer
96 // long microsTaken = CLKS_TO_MICROS(clocks);
97 // MS_COUNTER += (1 + (microsTaken / 1000));
98 // #endif
99
100 // mWait.mark();
101 }
102
103 template<int PIN> static void initPin() FL_NOEXCEPT {
104 if(PIN >= REAL_FIRST_PIN && PIN <= LAST_PIN) {

Callers 1

callShowPixelsMethod · 0.50

Calls 2

delayMicrosecondsFunction · 0.70
showRGBInternalFunction · 0.50

Tested by

no test coverage detected