G
G
German2019-02-02 12:24:36
Arduino
German, 2019-02-02 12:24:36

How to write programs for Arduino in C++?

No, not sketches through the Arduino IDE.
I'm interested in the possibility of writing a utility to interact with the Arduino, at least via the COM port. I heard that openframework can interact with the board, but did not find this "module".
That is, I connected the arduino, launched the utility and somehow interacted with it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vanyamba-electronics, 2019-02-02
@vanyamba-electronics

To connect, you just need to configure the COM port correctly. And then just read from it and write to it in the same way as when working with a regular terminal.
Haven't had the pleasure of writing a client for a COM port on Windows, but on Linux - everything is covered in my Arduino Host Client in C article .

E
evgeniy_lm, 2019-02-03
@evgeniy_lm

Arduino in C++, no way. The Arduino has MK AVR installed, so you can write in C without problems (without pluses) in AVRStudio, AtmelStudio, CodeVisionAVR. True, you will need an external programmer to load the received code into the MK; for this, almost all boards have a special ISP connector (6pin). The programmer can either be purchased or made from any Arduino board.
You also need to take into account the fact that the language in the Arduino IDE understands classes and is formally based on C / C ++. That is, the search for something else is basically meaningless.
If you need to connect an Arduino to a computer, then a PC program can be written on ANYONE! programming language, incl. and in C++ (I personally write in FreePascal). Also for mobile devices there are a lot of applications a lot of applications

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question