Problem createSprite function #1850
Replies: 1 comment
-
This suggests that there is insufficient memory to create the sprite until some other activity is comeplete and then sufficient memory becomes available. The sprite will require 8800 bytes. the creatSprite function returns a null pointer if the sprite cannot be created so that is a simple check. There is no clue to which processor is being used but the ESP8266 can easily run out of memory for web based interaction. It is also odd that a sprite 200 pixels wide is created, the drawn rectangles are 100 pixels wide, yet the final image shows that the sprite appears to be filled with a rectangle 200 pixels wide! Is there an explanation for that? Unless a complete minimal sketch is provided that I can run quickly and easliy with no special support code then I will not be able to help further. |
Beta Was this translation helpful? Give feedback.
-
I have a problem, I am trying to create a progress bar but it does not show if the completion is not 100%
The problem is here:
sprite_bargraph.createSprite(200, 22);
sprite_bargraph.drawRoundRect(0, 0, 200, 16, 4, TFT_WHITE);
sprite_bargraph.fillRoundRect(1, 1, 10, 14, 4, TFT_WHITE);
sprite_bargraph.pushSprite(60, 110);
Everything else works fine!
this only happens with the Firebase callback function. With other calback functions it works fine
do you have any ideas?
this is the function
Firebase.Storage.downloadOTA(&fbdo, STORAGE_BUCKET_ID /* Firebase Storage bucket id /, "update.bin" / path of firmware file stored in the bucket /, downloadBinFirebase / callback function */)
this is my code
This is while loading:

This is at the end of the upload:

Beta Was this translation helpful? Give feedback.
All reactions