Mr.K when I get some time I'll post the whole code and you can work with it.The code i have for the dimmer part is in C It was for 1 button and a 12c508 I changed it to the 16f628a so I'm now working changing it to assembly.
This didn't work but now i know how to flash a AC light bulb [embed]http://www.youtube.com/v/gebVAw49TPs&hl=en&fs=1[/embed] I need to get the timing right.
It's AC I just stepped it down to 13 volts.
This video shows the dimmer working [embed]http://www.youtube.com/v/bVHHAKb8M60&hl=en&fs=1[/embed]
I still need to and key pad. I'm just using a counter to go from lit to off.