Beruflich Dokumente
Kultur Dokumente
Hello everyone, I hope you all are fine and having fun with your lives. In today’s post, I am
going to share all about Arduino Data Types. Arduino Data Types play an important role in
Arduino Programming and I have discussed them a little in my tutorial on How to do Arduino
Programming. But today, we are gonna discuss it in more detail. I hope you guys are gonna
enjoy from them and are gonna get benefit using them.
Before going any further I think you must have a llok at Arduino Basic Tutorials in which I
have explained everything in a very easy way. Anyways, Till now I hopeo that you have the
basic know how of Arduino Programming and you ahave also worked on Arduino LED
Example. So, let’s get started with Arduino Data Types:
If you recall your basic mathematics in which we have learned about sets like Whole
Numbers, Natural Number, Prime Numbers etc.
So, in simple words, Data Types are such sets, but Data Types are different on the
nature of element storing in them.
Data type is like a place, so when we initialize our variale then we tell our compiler
that our newly introduced integer is of which type.
Is it an integer or it has decimal as well in it or its some character like A, B, C etc.
So, we have to tell our compiler the nature of our variable and that’s where Data
Types are required.
So, that’s a little Introduction of Data Types, now let’s have a look at Arduino Data
Types:
Arduino Data Types are almost similar to C++ Data Types because it roughly follows
the same syntax.
So, now I am gonna discuss the most commonly used Arduino Data Types one by one:
int Value = 0;
int Value;
You should read Arduino LED Example or How to write Arduino code where I have
used the Int variable.
Char – Arduino Data Types
boolean a;
The above mentioned Arduino Data Types are the most commonly used data types and I hope
you got their details in today’s tutorial. In the below figure, I have mentioned all details about
Arduino Data Types:
So, that’s all about Arduino Data Types. In the coming tutorial I will share more about
Arduino. So, take care and have fun !!!