Me and a friend is currently working on a school project. The point is to answer three questions (three buttons) where each question has one right answer. After the task is completed (every question is answered) two servos shall begin to move and one led start to fade, depending on how many of the questions is answered correctly (one answer = one event).
So far we have used arrays to make this work. But it seems that the code needs a debounce function. Is there any one who have a solution to our problem or is there possibly another way?
Her are our codes:http://codepad.org/2rw6yF0zhttp://codepad.org/o3qj2U2h
Thanks in advance // Olof and Tim