I forgot to add void before setup and loop and the parentheses when i use the function digitalRead. With these changes the code compiles.
I forgot to add void before setup and loop and the parentheses when i use the function digitalRead. With these changes the code compiles.