Lilygo T-display S3 ESP32 hard resetting via RTS pin

You created a code window in post #1. Maybe you used the copy for code window feature of the IDE.

You can put any text into a code window by clicking the <CODE/> command symbol, and then paste the text.

Maybe you should read How to get the best out of this forum.