what happens if you omit the last line? digitalPulse(NodeMCU.D5, 1, 0);
esp8266 reboots if you block for too long, the last line blocks because it waits for previous one (digitalPulse with long array) to finish.
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.
what happens if you omit the last line?
digitalPulse(NodeMCU.D5, 1, 0);
esp8266 reboots if you block for too long, the last line blocks because it waits for previous one (digitalPulse with long array) to finish.