I plan to start programming in C or C++ now as opposed to the Arduino programming language
Ah... I alays thought it was C++ but the functions such as digitalWrite were "Arduino added" functions. There are functions that come standard with the C and C++ programming languages, there are functions that come with 'standard libraries' supplied by compiler tool chain providers, and their are functions and libraries that Arduino includes with installation of the IDE and lastly there are any functions you yourself develop. Because a new function is developed and given to you for your use doesn't make the programming language being used not standard C++. Such functions are usually written in just standard C or C++ language.Things like Serial.begin, are they also standard C++ functions?No that 'standard' C++ functions. They are functions from libraries specifically developed for arduino that you can use or not use as you please. These functions are written in C++ and the source code for the functions are provided to you in the IDE distribution, if you wish to read them.I suppose my question is now somewhat different, I believe the Arduino IDE allows one to omit certain parts that initialise things from a program?Yes, there is an arduino pre-processor that supplies main() function and an initialization function that starts up timer0 interrupts to support the millis() and micros() functions. The pre-process also writes any needed function prototypes required for any functions you wrote in your sketch. I thinks that the limit of what it adds.Lefty
Can we say Arduino is a combination of a hw platform + its own SDK ?
Lefty, you (mis)use of quote tags is terrible Just copy-n-paste the generated quote header over each paragraph, or use anon quote tags. Bold answers look a bit like SHOUTING to be...
Quote from: tuxduino on Nov 23, 2012, 12:44 amLefty, you (mis)use of quote tags is terrible Just copy-n-paste the generated quote header over each paragraph, or use anon quote tags. Bold answers look a bit like SHOUTING to be...With over 12k posts, you haven't noticed that's how he responds?
I shouldn't worry - I don't feel shouted at.In the cores > arduino folder, which is the file that includes the source code for the functions such as digitalWrite?Just downloading Notepad++ now to make things like this a little easier.
Well technically there are NO standard functions in C/C++. All functions need to be.
Instead of the standard libc, avr-gcc compiles in avr-libc for many of the "standard" C-type functions.
Quote from: James C4S on Nov 23, 2012, 12:29 amWell technically there are NO standard functions in C/C++. All functions need to be.So, C++ is essentially an incredibly 'customisable' language for lack of a better expression, with functions included as either custom or standard libraries?
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16