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.
digitalPulse(NodeMCU.D5, 1, 0);
Yeah, whatever it will reboot at here. I still using Arduino to drive IR LED by now.
© Espruino, powered by microcosm.
Report a problem