I want to know how can I compile and upload the arduino sketch from my terminal instead of using Arduino IDE. I want to use a different IDE for writing code.
2 Answers
As a contributor to Sloeber, an Eclipse Plugin dedicated to Arduino and other micro controllers, I can tell you it's all a matter of using the correct version of gcc
and provide the correct options.
Even if that might seem simple, it's not like that, so my advice is to download Sloeber and look at the build console output where we print all the statements used to fulfill the build task: you can infer a lot from that.
As Sloeber is also open source, you can also inspect how we create those build commands for the different boards and tool chains.
I have been using PlatformIO for about 2 years now I think. It’s simply amazing.
You can use it standalone just for the CLI compile or bundled with VisualCode Studio for a complete IDE solution.
platformio