Need help with my code

The problem is function definition is not allowed here before ‘{’ token

asdd.txt (20.5 KB)

If you were giving us the exact compile error, we would have the line number...

but I think the main problem is that your functions are in the

void loop() {

they need to be outside

Kill thisreturn printSeconds;you function is declared void so should not return anything, and why would you want to return a pointer to that function anyway...

Better kill the whole code (this is madness!) and read about for loops, arrays and use a bit of maths etc....

Mazter372: The problem is function definition is not allowed here before '{' token

How did you get to have over 20.51k of code before you discovered this problem?

I suspect you had 20.4k of code that was working and then you made a small change that broke it - what was that change?

Test early and often.

...R