NM, problem solved. didn't know how to erase my own topic ![]()
Your code as posted is very difficult to read because you did not put it in code tags. Please read Read this before posting a programming question ... - Programming Questions - Arduino Forum particularly point 6 of the first post.