OctoWS2811.show() return takes too long

Status
Not open for further replies.

FAlameda

Active member
I'm testing the OctoWS2811 library and I find some long and erratic return times in OctoWS2811.show() 1000 - 2000 us instead of the expected 2 us

I'm not sure I'm measuring the times correctly

I'm compiling for Teensy 3.6, Serial, 180 MHz, Faster

Code:
#include <OctoWS2811.h>

const int ledsPerStrip = 206;

DMAMEM int displayMemory[ledsPerStrip*6];
int drawingMemory[ledsPerStrip*6];

const int config = WS2811_GRB | WS2811_800kHz;

OctoWS2811 leds(ledsPerStrip, displayMemory, drawingMemory, config);

void setup() {
	unsigned long time1, time2;
	
	leds.begin();
	leds.show();
	
	while(!Serial);		// Wait
	while(leds.busy());	// Wait
  
	time1 = micros();
	leds.show();
	time2 = micros();
	
	Serial.print("leds.show() ");		
	Serial.print(time2 - time1);		
	Serial.println(" us");
	
	// Prints "leds.show() 1036 us"
}

void loop() {
}
 
Last edited:
Status
Not open for further replies.
Back
Top