Closed theologyandstuff closed 4 years ago
I am surprised it works at all...
You need to specify the color depth before creating the Sprite as the default depth is 16 bits:
buf.setColorDepth(1);
buf.createSprite(240, 240);
Otherwise you are trying to grab a huge chunk of memory 2402402 = 115200 bytes (more than is actually available). See if that works.
P.S. I deleted your SSID and password from your post.
Ah okay I'll try that
P.S. just realized that I'm working an issue with an alt account for something totally different... kind of humiliating 😂
Works perfectly, thanks! That was it!
Really appreciate your fast help!
So I'm trying to do this terminal-esque project with an esp32 and an ST7789V display. It all works fine until I bring WiFi into the mix. When I uncomment the WiFi.begin line below, the display shows nothing. It's not a time-based thing... I've tested with delays and it doesn't fail when it connects to wifi, it fails with any compile where the wifi.begin line is uncommented. Also, it seems that the file size only jumps when I uncomment that line, not when I include the WiFi.h file. Here is my source below:
Here is my setup file:
I've tried different pins, different wifi channels etc. I don't know if it's an SPI problem caused by Wifi, or some software problem like memory. Also, when I say the display "fails", I mean that when I reboot the board the display turns on, displays random garbage for a split second like normal, then displays black pixels. Now that I think about, I haven't tried not using the buffer sprite. Maybe that's the issue.
Thanks in advance for your help, and also thanks for creating this awesome library!