Hi Dave,
I got a little further. I think I’m close.
When running FastLED.show(); for Static patterns, it loads the pallet into the LED strip and all is good. ??
I got the chase to work using the void and the void & void setup() command:
void RedFunctionFor1() {
// take action when 1 typed on keypad
static uint8_t startIndex = 0;
startIndex = startIndex + 1; /* motion speed */
FillLEDsFromPaletteColors( startIndex);
FastLED.show();
}
void setup()
uint8_t taskId = taskManager.scheduleFixedRate(100, RedFunctionFor1);
I can't seem to come up with the right syntax to cancel it. I want to Cancel the pattern moving/stepping When a new key is pressed
case '2':
OrangeFunctionFor2();
Serial.print("Orange ");
taskManager.cancelTask(RedFunctionFor1);
break;
I get an error message when I try to run this. I think this is where am going wrong?
taskManager.cancelTask(uint8_t RedFunctionFor1);
(
expected primary-expression before 'RedFunctionFor1')
complete code for now:
link:
https://github.com/Frank-PittsburghEventLighting/KeyboardManagerFG_Prests_good_test_ChaseTest4/blob/main/KeyboardManagerFG_Prests_good_test_ChaseTest4.ino
Thanks
Frank