set codes for light