Morse Code programming

what I have is another piece of code that should change the state according to the interval needed. All that does it write it to that state.