Been at this for hours now. When I try to upload to my UNO using the PlatformIO upload option it fails every time. Arduino IDE seems to work fine though. Here’s a picture:
Hope someone can help.
Been at this for hours now. When I try to upload to my UNO using the PlatformIO upload option it fails every time. Arduino IDE seems to work fine though. Here’s a picture:
Hope someone can help.
In your project’s src folder you have at least a “main.cpp
” and a “barebones.cpp
” which both defines a setup()
and a loop()
function. This is not allowed. You can only have one function definition either in “main.cpp” or in “barebone.cpp” but not in both at the same time.
(There can only be one setup()
function and one loop()
function in your project, no matter in which .cpp file they are located)
Thank you so much. I was using the src folder as an all-around Arduino code folder. Guess I’ll have to start doing something diferrent.