06-16-2012 03:16 PM
Are the cases getting called correctly? To test this I would make the LED blink or something to know that the function is getting called correctly.
Also, I can't tell you if your code is correct without the full code. Attach the file.