Getting a basic und...
Clear all

Getting a basic understanding of arduino

2 Posts
1 Users
Member Admin
Joined: 3 years ago
Posts: 380
Topic starter  
a000066 featured 5

Understanding that the Arduino is not a full blown computer is important. The Arduino class boards are embedded devices that serve a purpose once programmed

Unlike the Raspberry Pi or other small computers like NVIDIA these units run an operating system with other software and some like the pi3b or lower are very slow and almost not bearable. 

Arduino simply runs the code you upload to it. No frills, it simply does what it’s told.

The best part about developing in this environment is No Microsoft is required, yes they have their evil tentacles lurking but they can be completely eliminated if your of the mindset like us that nothing good comes from the spawn of Bill the pedophile gates.


This topic was modified 5 days ago 2 times by admin

Member Admin
Joined: 3 years ago
Posts: 380
Topic starter  

Macros are basically just textual substitutions in your code, and they get substituted into your code by the precompiler *before* the compiler interprets and converts your C code.

Definition : macro

A macro name is an abbreviation, which stands for some related lines of code. Macros are useful for the following purposes:

· To simplify and reduce the amount of repetitive coding

· To reduce errors caused by repetitive coding

· To make an assembly program more readable.

A macro consists of name, set of formal parameters and body of code. The use of macro name with set of actual parameters is replaced by some code generated by its body. This is called macro expansion.

Macros allow a programmer to define pseudo operations, typically operations that are generally desirable, are not implemented as part of the processor instruction, and can be implemented as a sequence of instructions. Each use of a macro generates new program instructions, the macro has the effect of automating writing of the program.

Macros can be defined used in many programming languages, like C, C++ etc. Example macro in C programming.Macros are commonly used in C to define small snippets of code. If the macro has parameters, they are substituted into the macro body during expansion; thus, a C macro can mimic a C function. The usual reason for doing this is to avoid the overhead of a function call in simple cases, where the code is lightweight enough that function call overhead has a significant impact on performance.


©2023 LocalAd


We're not around right now. But you can send us an email and we'll get back to you, asap.


Log in with your credentials


Forgot your details?

Create Account