Arduino code for dimmer using the phase control library.