the code which is on github for dimmer is based on pwm which can only dim incandescent bulb not motor or inductive loads
the schematic shared by zybi is below.

Please help to implement for inductive loads with zero crossing detection which requires two gpios
schematic for dimmer with zero detection
