Une LED qui mesure l'éclairement et qui éclaire !

i already tried to use the 5V power supply and control it by a relais connected to the digital pins, so there wasnt any resistor i had to turn off - but the relais was just too slow. :-/