I think the pic is reacting to noise, and sending CRLF sequences in response to said noise. Examine the code on the pic to see if there's any way that high impedance pins (inputs) transitioning randomly due to noise could make it do that.
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.
I think the pic is reacting to noise, and sending CRLF sequences in response to said noise. Examine the code on the pic to see if there's any way that high impedance pins (inputs) transitioning randomly due to noise could make it do that.