Is it possible that you've just got an almost flat battery? If you did then the increased power draw from the LDR when the light was on would drop the voltage so much that the Puck stopped working?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Is it possible that you've just got an almost flat battery? If you did then the increased power draw from the LDR when the light was on would drop the voltage so much that the Puck stopped working?