AaronLiddiment / LEDText

FastLED Flexible Text Message Class requires LEDMatrix Class
89 stars 32 forks source link

Last line in matrix not updated correctly after text passed #10

Closed bombcheck closed 6 years ago

bombcheck commented 6 years ago

Just noticed a strange behaviour on my 8x8 matrix: After the text scrolled out of view, the last line stays black for some time before it gets updated again from the running background effect:

Any idea?

bombcheck commented 6 years ago

Strange: If I define MATRIX_WIDTH with 9 instead of 8 (8 would be to correct physical width) the effect described is gone...

AaronLiddiment commented 6 years ago

Are you checking for a return of -1 from the Update function? And if you do check for the -1 do you then stop calling the Update function until you have done another SetText? I've not noticed that this problem before but most of my tests involved overlaying the background or using the dim background options.

bombcheck commented 6 years ago

Yes i check for the return code. I just scroll the text one time. So after the Update Function gives me a -1, a stop calling it before it is time to scroll the text again.

But I think I got it fixed: I defined the Char-Array for my text to long: 12 instead of the needed 6. Now the matrix behaves normal when the text scrolled out.