A driver adapted to drive an analog module or a digital module, the driver comprising: a set of output pins, adapted to be connected to an external module, the set of output pins comprising at least a power supply pin (VCC; L+, L-), a ground pin and a control pin (Rset/CLK), wherein the same set of output pins is used for connection to an analog module or to a digital module; a detecting circuit adapted to detect whether the external module is a digital module, an analog module or an open circuit by detecting a sampling voltage at the control pin (Rset/CLK); characterized in that the driver further comprises: a first switching circuit adapted to be controlled by a master control unit of the driver, and further adapted to switch a supply voltage to the at least a power supply pin when switched on by the master control unit, and a second switching circuit adapted to be controlled by the master control unit of the driver, and further adapted to couple the supply voltage to the control pin through a resistor when switched on by the master control unit, wherein during a first time period t<T1: the master control unit is configured: - to switch on the first switching circuit, such as to provide the supply voltage to the at least a power supply pin (VCC; L+, L-); and - to switch off the second switching circuit, such that the supply voltage (v) is isolated from the control pin (Rset/CLK); the detecting circuit is configured to determine that the external module is digital when the detected sampling voltage at the control pin (Rset/CLK) is above 80% of the supply voltage; otherwise to determine the external module is an analogue or an open circuit. a set of output pins, adapted to be connected to an external module, the set of output pins comprising at least a power supply pin (VCC; L+, L-), a ground pin and a control pin (Rset/CLK), wherein the same set of output pins is used for connection to an analog module or to a digital module; a detecting circuit adapted to detect whether the external module is a digital module, an analog module or an open circuit by detecting a sampling voltage at the control pin (Rset/CLK); a first switching circuit adapted to be controlled by a master control unit of the driver, and further adapted to switch a supply voltage to the at least a power supply pin when switched on by the master control unit, and a second switching circuit adapted to be controlled by the master control unit of the driver, and further adapted to couple the supply voltage to the control pin through a resistor when switched on by the master control unit, wherein during a first time period t<T1: the master control unit is configured: - to switch on the first switching circuit, such as to provide the supply voltage to the at least a power supply pin (VCC; L+, L-); and - to switch off the second switching circuit, such that the supply voltage (v) is isolated from the control pin (Rset/CLK); the detecting circuit is configured to determine that the external module is digital when the detected sampling voltage at the control pin (Rset/CLK) is above 80% of the supply voltage; otherwise to determine the external module is an analogue or an open circuit. the master control unit is configured: - to switch on the first switching circuit, such as to provide the supply voltage to the at least a power supply pin (VCC; L+, L-); and - to switch off the second switching circuit, such that the supply voltage (v) is isolated from the control pin (Rset/CLK); - to switch on the first switching circuit, such as to provide the supply voltage to the at least a power supply pin (VCC; L+, L-); and - to switch off the second switching circuit, such that the supply voltage (v) is isolated from the control pin (Rset/CLK); the detecting circuit is configured to determine that the external module is digital when the detected sampling voltage at the control pin (Rset/CLK) is above 80% of the supply voltage; otherwise to determine the external module is an analogue or an open circuit.