D
D
Dima Kim2016-07-14 08:08:17
Arduino
Dima Kim, 2016-07-14 08:08:17

How are Arduino sketches written?

Good afternoon, sorry for the noob question, tell me in what programming language are sketches for Arduino written?
someone speaks C someone C++
thanks for your attention

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
vanyamba-electronics, 2016-07-21
@jalpy

This is the most common C++. To compile sketches, either AVR-GCC (for AVR8 microcontrollers) or ARM-NONE-EABI-GCC - for ARM microcontrollers is used.

N
Nerten, 2016-07-14
@Nerten

In the Arduino language. And he himself is based on C / C ++ according to the documentation.

The Arduino language is based on C/C++. It links against AVR Libc and allows the use of any of its functions...

A
Alexander Volkov, 2016-07-14
@a_volkov1987

You can write sketches on Wiring if you don't feel sorry for yourself.
In general, it is possible on pure C - proof

R
Rou1997, 2016-07-14
@Rou1997

Usually written in the Arduino language, its syntax is based on C ++, because for classes it does not have its own, but the same syntax as C ++, and everything else (function libraries) obviously has nothing to do with desktop and mobile implementations of C -like languages, sometimes sketches are partially or completely written in AVR assembler, for starters, you can also write in the Arduino IDE, so install the Arduino IDE and write.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question