Arduino with PC sync problems

Hi, I would like to report an error that has been happening in the timing of my Arduino's execution.
(My problem is that the LED light is not flashing in sync with my PC's countdown)
When I upload the command and run it, there is no reported problem.
However, as soon as I remove and put the USB cable in the PC, the synchronization between the LED light blinks and the countdown doesn't happen, giving delay.
Can anyone tell me what it would be?
Problems with any component, or is it command?

Please post your full sketch.

  1. Auto Format your code by following these instructions:
    • If using the Arduino IDE: select Tools > Auto Format from the menus.
    • If using Arduino Cloud Editor: press Ctrl+B
  2. Click on the window that contains your sketch code.
  3. Press Ctrl+A. This will select all the text.
  4. Press Ctrl+C. This will copy the selected text to the clipboard.
  5. In a forum reply here, click on the reply field.
  6. Click the </> icon on the post composer toolbar. This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  7. Press Ctrl+V. This will paste the compilation output into the code block.
  8. Move the cursor outside of the code block markup before you add any additional text to your reply.
  9. Repeat the above process if your sketch has multiple tabs.
  10. Click the Reply button to post the output.

When your code requires a library that's not included with the Arduino IDE please post a link (using the chain links icon on the forum toolbar to make it clickable) to where you downloaded that library from or if you installed it using Library Manager (Sketch > Include Library > Manage Libraries in the Arduino IDE or Libraries > Library Manager in the Arduino Web Editor) then say so and state the full name of the library.

Hi @davirocha132

You posted this same question on the forum in Portuguese?

RV mineirin

What is a "PC countdown"? I only know of PC shutdown.

@davirocha132
I have deleted your other topic on the same subject. Posting the same question multiple times is against the forum rules as it can result in 2 or more lots of volunteers trying to help you with each unaware of what the others are doing, and so wasting their time.

Please read the forum guidelines How to get the best out of this forum

As your question stands I would not think anyone can really help as you have provided next to no information about your problem.