PROS lcd is initialized but not show anything

Here is my initialize code

void initialize() {

        pros::lcd::initialize();
	pros::delay(1000);
	pros::lcd::set_text(1, "Waiting for checking and initialize!");
	pros::delay(100);
	}

When the program starts, the V5 display doesn’t show any thing, I can’t see the green screen and three virtual buttons and things that I want to see. I try to add delay and reverse the screen in the V5 brain settings, but it still doesn’t works.
The situation is that it doesn’t work suddenly, I just change the code in the opcontrol(I don’t think it matters), and the initialize code as same as before.
Is there any solutions to solve this situation???

To solve your issue with the LCD not displaying:

  1. Ensure LCD Initialization: Verify you’re calling pros::lcd::initialize() in your initialize() function.

cpp

Copy code

void initialize() {
    pros::lcd::initialize();
    pros::lcd::set_text(1, "Waiting for checking and initialize!");
    pros::delay(1000);
}
  1. Check Display Settings: On the VEX brain, go to Settings > Display Settings to ensure it’s set correctly.
  2. Test with Simple Code: Try a basic program to confirm the LCD works:

cpp

Copy code

void initialize() {
    pros::lcd::initialize();
    pros::lcd::set_text(1, "Hello, VEX V5!");
    pros::delay(1000);
}
  1. Rebuild the Code: Make sure the latest code is compiled and uploaded to the brain.
  2. Hardware Check: If the issue continues, restart the brain or check the display for hardware issues.

Let me know how it goes!