Passing char to a function

The timer appears to be more trouble than it is worth. You can just manage your timing using millis.