Sample code for the InMojo Triac digital light dimmer http://www.inmojo.com/store/inmojo-market/item/digital-ac-dimmer-module-lite-v.2/