Leonardo communication problem

Hello,
Windows 10
I have a Leonardo board (not official) and I was using an LCD and button to make those jump games. But I accidentally uploaded a different ino file while the board was running the game. And the board kinda glitched, the LCD was frozen and the board suddenly doesn't come out in the port. I tried checking the device manager and yes, only COM1 was there and the CH340(Leonardo board) wasn't there. By the way, the computer has no problems and I tried changing the cable but still, the board is not responding.
Now I tried some solutions I pressed the reset button, the TX and RX LED blinks very fastly and after 3 seconds the RX led goes out and the tx led just flashes forever. The L LED doesn't do anything. I also clicked the reset button 2 times fastly. And the L led kinda goes in and out like a siren and the computer gets the port called 'Arduino Leonardo bootloader' and after 8 seconds the L goes off and the TX and RX led blinks(blinks very fastly it looks like it is just on)

When you get the BOOTLOADER port then use that COM port in the IDE to load a simple sketch such as BLINK or BARE MINIMUM.

That should get rid of the errant sketch.

Bob.

A Leonardo uses native USB; it does not have an usb-to-ttl chip so the CH340 is irrelevant.

Switch on verbose output during upload in file -> preferences. When the upload starts you will see some lines like

Forcing reset using 1200bps open/close on port COM12
PORTS {COM12, COM26, COM27, } / {COM26, COM27, } => {}
PORTS {COM26, COM27, } / {COM13, COM26, COM27, } => {COM13, }
Found upload port: COM13

Pressing the reset button while it's showing the PORTS lines should allow you to upload.

Thank you, everybody! I tried the blink and got the timing and it got solved! Nearly bought a new one