Hi,
For the DIMMER function ...
begin by a look to this example, to see how it works 
http://melabs.com/resources/samples/...ted/dimmer.zip
you just need to replace Buttons input + counter by the pot reading value, once scaled.
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks