Does putting a pinMode(D5,"output"); into onInit() fix it?
(if it does, it's still a bug, but at least we know which one it is).
What board are you using? What version of Espruino?
@DrAzzy started
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.
Does putting a pinMode(D5,"output"); into onInit() fix it?
(if it does, it's still a bug, but at least we know which one it is).
What board are you using? What version of Espruino?