Sure, im sorry if I was not clear (ive been up all night and brain is foggy :))
I have a loop going that checks if the conditions are true or false, if true it plays a wav file specified in the case argument. what I am having a problem with is passing (char effect, int volume) to another function. ie the timer function
#include <M5Stack.h>
#include "utility/M5Timer.h"
M5Timer M5timer;
void playwav(){
}
void setup() {
M5.begin();
M5timer.setTimeout(5000, playwav);
}
void loop() {
M5timer.run();
}