Displaying images on the brain

Can you use images, bitmaps, et cetera on an sd card to display images while running a program?

2 Likes

Yes, the relevant function is brain::lcd::drawImageFromFile.

See the API docs here.

3 Likes

Is there any possible way to make it work without an sd card? Maybe even develop its own ui where you can press next to display the next image too?


I don’t know anything about printing images to the screen, but this should work

2 Likes

yea, you can embed images in the program, just keep them to a reasonable size.
Here’s another old demo using an embedded image.

5 Likes

if you want to develop a UI, you may want to consider LittleVGL, which comes preinstalled with PROS.

1 Like

And is available for VEXcode here.

2 Likes

I didn’t see that. Cool. LVGL certainly takes some getting used to, but once you are used to it its the greatest thing ever.

1 Like