Try this:
Step 1
Step 2
Step 3
There are fancier ways of doing this, but this should work. If you get errors, just reply and I will get this right, as I will be using it as well. Hence, thank you for the post, one more cool thing to add to my project.
This should increase and decrease the brightness by 10% each time, from totally black to totally white.