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

Method showPixels

src/platforms/arm/kl26/clockless_arm_kl26.h:37–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 virtual u16 getMaxRefreshRate() const { return 400; }
36
37 virtual void showPixels(PixelController<RGB_ORDER> & pixels) FL_NOEXCEPT {
38 mWait.wait();
39 cli();
40 u32 clocks = showRGBInternal(pixels);
41 if(!clocks) {
42 sei(); delayMicroseconds(WAIT_TIME); cli();
43 clocks = showRGBInternal(pixels);
44 }
45 long microsTaken = CLKS_TO_MICROS(clocks * ((T1 + T2 + T3) * 24));
46 MS_COUNTER += (microsTaken / 1000);
47 sei();
48 mWait.mark();
49 }
50
51 // This method is made static to force making register Y available to use for data on AVR - if the method is non-static, then
52 // gcc will use register Y for the this pointer.

Callers

nothing calls this directly

Calls 5

markMethod · 0.80
cliFunction · 0.50
showRGBInternalFunction · 0.50
delayMicrosecondsFunction · 0.50
waitMethod · 0.45

Tested by

no test coverage detected