Danois90:
You could check the variable for each 12 (or 12*12) LED's you render and save some compute power
Ok, that's a very good Idea. The render() function does repeatedly call the function(void) show(). Show does send out the data signal to the LEDs-> show() commits a frame. I think adding the check for the bool there and let render() return if true is a good way of solving this problem. Thank you.
But another question: If I add the check to the show() function(void) how can I let render() return?:
void show() {
//send data signal
if(cancel)//cancel would be the bool var
return; //Would just let show() return and not render() if show() called in render()
}