Esp32 wrover-e + 2'' waveshare st7789 #2976
Unanswered
AnRich26
asked this question in
Q&A - Sprites
Replies: 1 comment 3 replies
-
The ESP32 will not have enough RAM unless the board has PSRAM fitted and enabled. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Esp32 Wrover-E 16mb Flash 8Mb Psram connected to 2'' 320x240 Waveshare st7789, i am able to use the screen to display images and text. However when using sprites set at full screen i only get about 240x240 pushed to the screen i have checked user setup and done all the wright changes to use with the screen exept sprite full screen seems not to be working. My code is basic and is as follows:
#include <SPI.h>
#include <TFT_eSPI.h>
TFT_eSPI tft = TFT_eSPI();
TFT_eSprite bak = TFT_eSprite(&tft);
void setup() {
// Init Serial Port
Serial.begin(9600);
// Init Tft
tft.init();
tft.setRotation(1);
tft.setSwapBytes(true);
tft.fillScreen(TFT_BLACK);
Serial.println("Screen Init Done!");
}
void loop() {
bak.createSprite(TFT_WIDTH,TFT_HEIGHT);
//bak.setRotation(1);
bak.setSwapBytes(true);
bak.fillScreen(TFT_RED);
bak.pushSprite(0,0);
}
Beta Was this translation helpful? Give feedback.
All reactions