How to put image on Vex Brain

Hello, I’m trying to put an image on the brain but it won’t work I’ve already followed other’s previous posts’ advice by making the image 480x240 and making the code call for the image file name ‘Brain.Screen.drawImageFromFile(“No_auto.png”, 0, 0);’ and making sure the file is a .png but it still won’t work do I need to make a file for the brain to pull from or something else?

Are you uploading the code to an SD card and putting it on the brain? Is the image appropriately scaled? Can you send some of your code?

I tried everything I could find on the forums but nothing worked.

I had to find some old LVGL documentation and work it out my self.

I made a vid about it if you are using Pros.
https://youtu.be/xpO4SOFWeyE?si=sy2AN9qqmR3NKc8Z

Hope this helps. :slight_smile:

You have to format a micro sd card to “FAT32” and then put the png image on the sd card. Then in your code you do Brain.Screen.DrawImageFromFile(“image.png”, x, y)

Here is the code it’s suppose to appear when autonomous starts

void autonomous(void) {
Brain.Screen.clearScreen();
Brain.Screen.drawImageFromFile(“No_auto.png”, 0, 0);
// place automonous code here Remember to put “Drivetrain.driveFor” and not “Drivetrain.drive”
Drivetrain.setDriveVelocity(50, percent);
Drivetrain.driveFor(forward, 51,inches);
wait(1,seconds);
Drivetrain.turnFor(right, 90, degrees);
wait(1,seconds);
Drivetrain.driveFor(forward, 4,inches);
wait(1,seconds);
Drivetrain.driveFor(reverse, 25,inches);
wait(1,seconds);
Drivetrain.turnFor(right, 100, degrees);
wait(1,seconds);
Drivetrain.stop();
}