Printing to the controller

So, i’ve recently been trying to get some values to print to the controller screen of our V5 robot, this is what i have
image
but it will just always give me an error, i’m using this https://api.vexcode.cloud/v5/html/classvex_1_1brain_1_1lcd.html
as a reference but it always just says
[clang] Call to non-static member without an object argument
am smol brain please help

you need to create the instance of the controller (you could do that with graphical configuration). Then call the clearScreen() member function on the controllers Screen instance.

controller Controller1( primary );

int main() {
  Controller1.Screen.clearScreen();  

  // etc.
}
2 Likes

Oh, thank you, i had the controller configured but was calling lcd instead of screen, it’s not erroring anymore!