Codebase for embedded light control