Compiler tells you the problems.
switchpin is not the same as switchPin.. C++ is case sensitive.
byte run; is missing
You're missing a } at the end.
Compiler tells you the problems.
switchpin is not the same as switchPin.. C++ is case sensitive.
byte run; is missing
You're missing a } at the end.