what is a simple and cheap method of dimming? I was planning on doing PWM from and msp430.
In the case of a mains powered LED. It has to support dimming.
Phase control might work but trailing edge is better than leading edge and most cheap dimmers are leading edge.
I have some mains powered LEDs which support dimming. They even work with cheap leading edge dimmers but another problem is such dimmers normally have a minimum load of 40W so a small incandescent lamp needs to be connected in parallel with the LED.
You can easily make a cheap leading edge dimmer which will work at very low load currents but it will need both a live and neutral connection and can't just be connected in series with the load.
It is possible to make a trailing edge dimmer which is connected in series with the load but it's more complicated.