Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

10
  • But how do I upload this to the board. If not possible how to connect the board to my c++ programs. ide is only compettible with .ino files. Commented Nov 2, 2022 at 20:17
  • @Alien5516788: you can easily convert a C++ program into a .ino program: just change the file extension to .ino. Commented Nov 2, 2022 at 20:38
  • You use the IDE to upload what I posted to the board. That was an Arduino "sketch". Plus, you can put C++ files into the same folder as the .INO files. Commented Nov 3, 2022 at 6:07
  • Did you read the link I mentioned in my answer? That shows using C++ files. Commented Nov 3, 2022 at 6:08
  • @Alien5516788, To be clear, only .ino/.pde files are subject to the kind of preprocessing that makes the Arduino "language" different from ordinary C++. The core, core libraries, and system libraries are all written in a mixture of .c/.cpp/.h files (broadly non-INO files) as is the majority (if not entirety) of most non-core libraries. The bulk code going into any typical Arduino project is in fact written in ordinary C++ (or C) code, whether the end user understands this or not. You are likewise not required to write much of any of your own code within .ino files. Commented Nov 5, 2022 at 13:26