Drawing images from memory/buffer

It works finally. Huh that’s weird cuz I tried with a 300x200 bmp file and it didn’t work. I tried to convert it to a 480x240 png file and it finally worked.

For those who are interested in trying to put pictures on the robot, use https://littlevgl.com/image-to-c-array to convert the 480x240 png picture file with RAW as color format. Then replace the uint8_t array in jpearman’s code with the output one. Tested it works.

1 Like

Glad you got that going. There’s no particular reason the smaller images wouldn’t work, however, we support most but not all variations of the bmp file format, perhaps you picked something our code couldn’t handle. I would stay with png images, we have better support for those.


This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.