pic.png is not a filename.
"pic.png" would be. The
"s tell the compiler that the stuff inside of them is a string. Otherwise it will think you are referring to a member
png of the object
drawImageFromFile is not a static method, so you have to call it on a
vex::brain::lcd object. Luckily for you, there is one of these created with every
vex::brain object. Also, your code template should have come with a
vex::brain having already been set up for you. (If you’re using Robot Mesh Studio, that
vex::brain is named
Brain.) It has a
vex::brain::lcd member that goes by the name
Screen. So putting this all together, you would for Brain’s Screen’s drawImageFromFile method by stringing them together:
After all that, just make sure that you have an SD card plugged into the brain with a
"pic.png" on it.