I start to use platform io instead of arduino idle. I tried a basic code for test the program. I upload the code to arduino with platfom io. I didn’t get any error message on the terminal screen. I got a message saying installation was succesful. However the code didn’t work on arduino. When I upload the same code with the arduino idle program, the code works, but when I upload it with platform io, the code doesn’t work. I couldn’t find out why. Can you help me about this issue.
This is my code. vs code uploads the code to arduino in 6.36 seconds and sends back the successful message. But when the button connected to the pin number 6 is pressed, the green led does not light up. The red led does not light up when the program is running for the first time. The red light does not light up when the button connected to pin number 2 is pressed. But when I upload the code via the arduino idle, the code works the way I want it.
Above, I am sharing screenshot of the message I received after uploading the code.