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