Question About Software

Hi Guys,

I've had experience with Python, Basic and a little Java Script, but I'm still a complete novice when it comes to programming. So, I study. And read. And study some more, lol....

I have a question about Arduino....I read on Wikipedia that Arduino's language is based on Processing (which is based on Java) and Wiring which is based on C/C++. In fact, I read that Arduino passes its code to the AVR-GCC C compiler before it goes to the board.

My question is, how close is the syntax of the Arduino language to the syntax of C? If I wanted to learn C, is knowing the Arduino/Processing language going to help me in the long run? Or, if I read a book on programming in C would it fairly easily aid my programming skills with the Arduino?

Thanks for the input!

Annie in Idaho

Arduino will help you learn C/C++, and C/C++ books will help programming the Arduino.

The processing part of Arduino resides in the IDE and API naming convention.

how close is the syntax of the Arduino language to the syntax of C? If I wanted to learn C, is knowing the Arduino/Processing language going to help me in the long run?

Syntax-wise, you can write C code and it will run on your arduino. The pieces of Arduino that are C++ are mostly small and can be ignored, if you want.

You will probably run into the differences between "embedded C programming" and "desktop C programming." A book on C that starts out with:

#include <stdio.h>
main(){ printf("Hello World!"); }

May not turn out to be very useful for learning to program an Arduino, while becoming an expert Arduino programmer isn't going to help very much when it comes to modifying Gnome desktop widget source.

Thanks for the awesome advice and help, guys!

What I'll do is keep on writing sketches and read a couple C books I have...

I assume once one becomes a hard core pro AT chip programmer one could then start using something like AVR Studio or something for getting that C code onto the chips, huh?

Thanks again...

:slight_smile: