USB cable detection

Thank you, Paul~!

condition : The LCD is connected to the Nano board

If the C Type cable is disconnected, the screen turns off, and when it is connected, the screen turns on is impossible, right?