I have an incandescent (halogen, I think) bike lamp that uses some electronics to give pushbutton control and two brightness levels via PWM. I'm pretty sure it's not a micro though, that would just be silly for such a simple task (and it's got quite a few cheap parts in it).
Best regards, Spehro Pefhany