AC Light Dimming

Thanks Gromain,
I think I can manage the translation, however I think you have only uploaded the initialization part of the code in that thread. The second half of the code appears to be missing.