Does not working mean your code doesn't compile, or just that nothing happens with the hardware when running the code?
Posting full code will help others diagnose the problem, as well. You can use [ code ] [ /code ] tags (without the spaces inside the brackets) to make the code easier to read in your post.