The present invention provides an integrated self-contained lighting module which can be used on its own, or in conjunction with other modules to produce white light, or light of any other colour within the colour spectrum. Each module comprises one or more light-emitting elements, a drive and control system, a feedback system, thermal management system, optical system, and optionally a communication system enabling communication between modules and/or other control systems. Depending on the configuration, the lighting module can operate autonomously or its functionality can be determined based on either or both internal signals and externally received signals.