Can someone help me?
I build the circuit from (Dimmer.zip) ==> http://www.melabs.com/resources/samples.htm#submitted,
and I have this problem:
If I press the increase button (<500ms) ,the lamp go on,full and if I press the decrease button, the lamp go off (normal).
If I try to decrease the intensity from full on, or increase the intensity from off state, the lamp it fllash fast without decreasing/increasing brightness, until the lamp go on or off.
On GP4 I have 50hz, and value at the pin GP2 while press the buttons, increment/decrement pulses by 500 uSec,until the maximum/minimum value, everything look ok.

Any Help?

Thanks!