I have in the past done what I am trying to do here. I declare a function in the beginning of the program and create the function after the void loop section of the code. Now it will not compile and I cannot under stand why. Any help will be appreciated.
function.cpp (5.11 KB)