Good day, everyone! I have a problem with module ILI9341. I'm plugging it in on esp12F. After loading and cleaning the screen appears, after which the esp is rebooted and so on. Please help if anyone knows what the problem is.

I understand the problem. When you output a long word, it fails. And when you perform on a short command, there is no failure. Use this method is unrealistic. Maybe in the future it will make the library better

When you output a long word, it fails. And when you perform on a short command, there is no failure.

@user79559, could you please elaborate on that a bit more? (cannot see anywhere in your code something that displays "Hi...*).

The restart may have different causes:

running out of heap space

running out of time (js work has to complete in the breaks between ESP8266 has to tend Wifi business)

running out of power (brown out... if ESP8266 is not solidly powered / has not enough decoupling capacitance across GND and VCC, or power supply is too weak - too many other things are on the 3.3V rail together with ESP8266 - ESP8266 Wifi operation takes it down...)

@MaBe, if you want to use the HW SPI, do you still need to create one with new SPI()? Can you not just use the SPI1? SPI1 - all uppercase - is defined in ESP8266 (just checked0). var SPI1 = new SPI() may mess with that. If you want to create the SW SPI, I'd - by my gut to stay way for sure from trouble / interference - use spi = new SPI(); to not mess with SPI1...

Lines 5 and 14 and 11 show that you get new objects... and loose the HW SPI, I guess... do you? May be it just looks on the JS level that way, but not under the hood where it is created before JS takes place.