{"id":42593,"date":"2022-02-18T07:00:19","date_gmt":"2022-02-18T06:00:19","guid":{"rendered":"https:\/\/botland.com.pl\/blog\/what-types-of-variables-do-we-have-in-arduino\/"},"modified":"2023-09-25T09:01:39","modified_gmt":"2023-09-25T07:01:39","slug":"what-types-of-variables-do-we-have-in-arduino","status":"publish","type":"post","link":"https:\/\/botland.store\/blog\/what-types-of-variables-do-we-have-in-arduino\/","title":{"rendered":"What types of variables do we have in Arduino?"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading time:<\/span> <span class=\"rt-time\"> 6<\/span> <span class=\"rt-label rt-postfix\">min.<\/span><\/span>\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"42593\" class=\"elementor elementor-42593 elementor-32003\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-78e7abc elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"78e7abc\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5537c451\" data-id=\"5537c451\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9ba0a24 elementor-widget elementor-widget-heading\" data-id=\"9ba0a24\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Variables in Arduino<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cdb040a elementor-widget elementor-widget-text-editor\" data-id=\"cdb040a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In programming the type of declared variables is very important. It determines the correctness of the code, as well as the capabilities of the variable and, for example, the accuracy of calculations in the program we write. This article presents the types of variables used in programming in Arduino IDE environment.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a17cde0 elementor-widget elementor-widget-heading\" data-id=\"a17cde0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Computer programming with variables<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-80b8e9b elementor-widget elementor-widget-text-editor\" data-id=\"80b8e9b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Computers, including miniature prototyping platforms like the Arduino, perform calculations and logic operations using a processor. At the heart of the processor and microcontroller, is the arithmetic logic unit (ALU), which\u00a0<span style=\"font-weight: bold;\">performs simple operations on locations in memory<\/span>, such as addition, subtraction and logical product. The arithmetic-logic unit does not recognise what this data represents, even despite the knowledge of the designer or target user. Data subject to arithmetic-logic operations, are needed in performing calculations on\u00a0<span style=\"font-weight: bold;\">integers as well as floating-point numbers<\/span>.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-774a9f4 elementor-widget elementor-widget-image\" data-id=\"774a9f4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/02\/piqsels.com-id-svhda-1024x683-1.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"piqsels.com-id-svhda-1024x683\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NzA5OTgsInVybCI6Imh0dHBzOlwvXC9ib3RsYW5kLnN0b3JlXC9ibG9nXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDIyXC8wMlwvcGlxc2Vscy5jb20taWQtc3ZoZGEtMTAyNHg2ODMtMS5qcGcifQ%3D%3D\" data-wpel-link=\"internal\">\n\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"800\" height=\"534\" src=\"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/02\/piqsels.com-id-svhda-1024x683-1.jpg\" class=\"attachment-large size-large wp-image-70998\" alt=\"\" srcset=\"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/02\/piqsels.com-id-svhda-1024x683-1.jpg 1024w, https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/02\/piqsels.com-id-svhda-1024x683-1-300x200.jpg 300w, https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/02\/piqsels.com-id-svhda-1024x683-1-768x512.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bae8221 elementor-widget elementor-widget-text-editor\" data-id=\"bae8221\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><span style=\"font-weight: bold;\">All the context for these operations comes from the compiler<\/span>, and hints about the context come to the compiler from the user. The programmer&#8217;s task, on the other hand, is to tell the compiler which of the values taken for calculations is an integer and which is a floating-point number. Thus, the compiler must understand what we mean when, for example, we want to add together two numbers &#8211; one integer and the other &#8211; floating point. In some cases it is a simple operation, and in other cases it is not. This seemingly simple process is\u00a0<span style=\"font-weight: bold;\">more complex than it may seem<\/span>, especially when viewed from the perspective of performing these calculations directly by a human on a piece of paper or in memory. For this reason, when entering numerical data into a program,\u00a0<span style=\"font-weight: bold;\">it is necessary to specify the type of variable<\/span>\u00a0assigned to this argument.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d4b8a5c elementor-widget elementor-widget-heading\" data-id=\"d4b8a5c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Arduino - variables types<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4259eb1 elementor-widget elementor-widget-text-editor\" data-id=\"4259eb1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Variable types\u00a0<span style=\"font-weight: bold;\">are used to specify data types<\/span>\u00a0and associated functions to handle data. Specifying them is used to declare functions and variables that define the bit pattern and memory space.<\/p><p>The following variable types are used in the Arduino IDE development environment, which we will discuss with examples:<\/p><ul style=\"font-size: 16px; background-color: #ffffff;\"><li style=\"font-size: 16px;\"><code>void<\/code><\/li><li style=\"font-size: 16px;\"><code>int<\/code><\/li><li style=\"font-size: 16px;\"><code>char<\/code><\/li><li style=\"font-size: 16px;\"><code>float<\/code><\/li><li style=\"font-size: 16px;\"><code>double<\/code><\/li><li style=\"font-size: 16px;\"><code>unsigned int<\/code><\/li><li style=\"font-size: 16px;\"><code>short<\/code><\/li><li style=\"font-size: 16px;\"><code>long<\/code><\/li><li style=\"font-size: 16px;\"><code>unsigned long<\/code><\/li><li style=\"font-size: 16px;\"><code>byte<\/code><\/li><li style=\"font-size: 16px;\"><code>word<\/code><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f095d66 elementor-widget elementor-widget-heading\" data-id=\"f095d66\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Void<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2c7c31f elementor-widget elementor-widget-text-editor\" data-id=\"2c7c31f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The void data type specifies an empty set of values and is only used to declare functions. It is used as the return type for functions that do not return any value. Consider the following code:<\/p><ol style=\"font-size: 16px; background-color: #ffffff;\"><li style=\"font-size: 16px;\"><code>int a = 5;<\/code><\/li><li style=\"font-size: 16px;\"><code>void setup( )<\/code><\/li><li style=\"font-size: 16px;\"><code>{<\/code><\/li><li style=\"font-size: 16px;\"><code>. \/\/<\/code><\/li><li style=\"font-size: 16px;\"><code>}<\/code><\/li><li style=\"font-size: 16px;\"><code>void loop ( )<\/code><\/li><li style=\"font-size: 16px;\"><code>{<\/code><\/li><li style=\"font-size: 16px;\"><code>.<\/code><\/li><li style=\"font-size: 16px;\"><code>.<\/code><\/li><li style=\"font-size: 16px;\"><code>}<\/code><\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b190066 elementor-widget elementor-widget-heading\" data-id=\"b190066\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Int<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3c4ba7a elementor-widget elementor-widget-text-editor\" data-id=\"3c4ba7a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The data type int encompasses whole numbers such as 1, 27, 39, -11, -27, -46, etc.<strong> They do not have a fractional part (mantissa)<\/strong>. The integer data type is considered a basic data type for storing numbers. The size of the int data type is two bytes (16 bits). The range of the int data type includes numbers from -32768 to 32767 or in exponential notation from &#8211; (2^15) to ((2^15) &#8211; 1).<\/p><p>In AVR ATmega microcontrollers and the Arduino UNO R3 board, the int data type stores values up to two bytes in size. However, for the Arduino Zero and Arduino MKR1000 boards based on the SAMD21 microcontroller, as well as the Arduino Due, the int data type stores values from 4 to 32 bits. Therefore, the minimum range includes numbers from -(2^31) to ((2^31)-1) or, written differently, from -2147483648 to 2147483647. Negative numbers, on the other hand, are stored in the form of powers of 2 with a natural exponent. The value of the most significant bit (MSB) determines the sign of the number. Consider the following code:<\/p><ol><li>int var = val;<\/li><\/ol><p>where:<\/p><div><p><strong>var = variable<\/strong><br \/><strong>val = value assigned to the variable<\/strong><\/p><div>\u00a0<\/div><\/div><div>\u00a0For example:<\/div><div><ol style=\"font-size: 16px; background-color: #ffffff;\"><li style=\"font-size: 16px;\"><code>int a;<\/code><\/li><li style=\"font-size: 16px;\"><code>int b = 4;<\/code><\/li><\/ol><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-da2d5a0 elementor-widget elementor-widget-text-editor\" data-id=\"da2d5a0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Any variable or variable identifier becomes an integer variable and can only store whole numbers. Consider the following code<span style=\"font-size: 1rem;\">:<\/span><\/p><ol><li>int Suma = 0;<\/li><li>void setup( )<\/li><li>{<\/li><li>Serial.begin(9600);<\/li><li>}<\/li><li>void loop ( )<\/li><li>{<\/li><li>Suma++; \/\/przy kazdym okrazeniu petli, suma jest zwiekszana o 1<\/li><li>Serial.println (Suma); \/\/wyswietlanie obecnego wyniku sumy<\/li><li>delay(2000); \/\/nastepne okrazenie petli za 2s<\/li><li>}<\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7897a30 elementor-widget elementor-widget-heading\" data-id=\"7897a30\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Char<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e172f7c elementor-widget elementor-widget-text-editor\" data-id=\"e172f7c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The data type <em>char<\/em> <strong>can store any number of character sets.<\/strong> An identifier declared as char becomes a character variable. Literals are written in single quotes. It is often said that the char type is an integer type. This is because symbols, letters, etc. are represented in memory by associated numerical codes, and these are exclusively whole numbers. The size of the char data type is at least eight bits. We can use the byte data type for an 8-bit or one-byte-long data type like unsigned char. For example, the letter &#8216;A&#8217; in ASCII encoding has the numerical value assigned of 65. For this reason, if we enter the expression &#8216;A&#8217; + 2, according to the ASCII standard, it will have a value of 67. Consider the code:<\/p><ol><li>char var = val;<\/li><\/ol><p>where:<\/p><div><p><strong>var = variable<\/strong><\/p><p><strong>val = value assigned to the variable<\/strong><\/p><p>Consider the following code:<\/p><ol><li>char myvariable = &#8216; B &#8216;;<\/li><li>char myvariable = 66 ; \/\/ both values \u200b\u200bare equal<\/li><\/ol><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-96ccfcd elementor-widget elementor-widget-heading\" data-id=\"96ccfcd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Float<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3e15b20 elementor-widget elementor-widget-text-editor\" data-id=\"3e15b20\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>A number <strong>containing a fractional part and a whole part is considered a floating<\/strong>-point number. For example, 3.142 is a floating-point number. The number 14 is an integer, and 14.0 is a floating-point number. Due to greater precision, fractional numbers are used to approximate continuous and analog values (e.g., when measuring electrical voltages using an ADC converter built into a microcontroller). Floating-point numbers can also be written in exponential form. Numbers can be as large as 3.4028235E+38 and as small as -3.4028235E+38. Thus, the size of the float data type is 4 bytes or 32 bits.<\/p><p>Consider the code:<\/p><ol><li><code>float var = val;<\/code><\/li><\/ol><p>where:<\/p><p><strong>var = variable<\/strong><\/p><p><strong>val = value assigned to the variable<\/strong><\/p><p>Consider the code:<\/p><ol><li><code>int x ;<\/code><\/li><li><code>int y ;<\/code><\/li><li><code>float z ;<\/code><\/li><li><code>void setup ( )<\/code><\/li><li><code>{<\/code><\/li><li><code>Serial.begin (9600);<\/code><\/li><li><code>}<\/code><\/li><li><code>void loop ( )<\/code><\/li><li><code>{<\/code><\/li><li><code>x = 3 ;<\/code><\/li><li><code>y = x\/2 ; \/\/ y is an int variable and cannot store fractions, so it will return 1<\/code><\/li><li><code>z = (float) x \/ 2.0 ; \/\/ z stores the value 1.5 because it is of type float<\/code><\/li><li><code>\/\/ this means we have to use division by 2.0 instead of 2<\/code><\/li><li><code>}<\/code><\/li><\/ol><p>\u00a0<\/p><p>From the above code, it follows that even if we use whole numbers for floating-point calculations, we should append a decimal point and a zero to them. Otherwise, the compiler will understand that we used an integer and will return integer values. Floating-point numbers can also be converted to integer form. Consider the code:<\/p><ol><li><code>float a =4.7 ;<\/code><\/li><li><code>int b = a + 0.5 ; \/\/ the program returns the value 5<\/code><\/li><\/ol><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3a2a963 elementor-widget elementor-widget-heading\" data-id=\"3a2a963\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Double<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-67c8b8c elementor-widget elementor-widget-text-editor\" data-id=\"67c8b8c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The <code>double<\/code> data type is also used for handling decimal or floating-point numbers. It occupies twice as much memory as the <code>float<\/code> type. It stores floating-point numbers with greater precision and range. The <code>double<\/code> type denotes double-precision floating-point numbers and takes up four bytes on ATmega and UNO boards and 8 bytes on Arduino Due. Consider the code:<\/p><ol><li><code>double var = val;<\/code><\/li><\/ol><p>where:<\/p><p><strong>var = variable<\/strong><\/p><p><strong>val = value assigned to the variable<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-08f64e7 elementor-widget elementor-widget-heading\" data-id=\"08f64e7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Unsigned int<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a7467b2 elementor-widget elementor-widget-text-editor\" data-id=\"a7467b2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The <code>unsigned int<\/code> type stores a value up to two bytes or 16 bits. It holds only positive values. The range of the <code>unsigned int<\/code> data type is from 0 to 65,535 or from 0 to ((2^16) \u2013 1). Arduino Due stores an unsigned data value of 4 bytes or 32 bits. The difference between the unsigned data type and the signed one is the sign bit. In a 16-bit number, 15 bits are interpreted with two&#8217;s complement, while the most significant bit is interpreted as a positive or negative number. If the most significant bit is &#8220;1&#8221;, it is considered a negative number. Consider the code:<\/p><ol><li><code>unsigned int var = val;<\/code><\/li><\/ol><p>where:<\/p><p><strong>var = variable<\/strong><\/p><p><strong>val = value assigned to the variable<\/strong><\/p><p>For example:<\/p><ol><li><code>unsigned int pinLED = 3;<\/code><\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d49b923 elementor-widget elementor-widget-heading\" data-id=\"d49b923\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Short<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cc7a00b elementor-widget elementor-widget-text-editor\" data-id=\"cc7a00b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><code>Short<\/code> is an integer data type that stores two bytes or 16-bit data.<\/p><p>The range of the <code>short<\/code> variable type is from -32768 to 32767 or \u2013 (2^15) to ((2^15) \u2013 1). Arduinos based on ARM and ATmega microcontrollers typically store the <code>short<\/code> data type value in two bytes. Consider the code:<\/p><ol><li><code>short var = val;<\/code><\/li><\/ol><p>where:<\/p><p><strong>var = variable<\/strong><\/p><p><strong>val = value assigned to the variable<\/strong><\/p><p>For example:<\/p><ol><li><code>short pinLED = 3;<\/code><\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-665f05c elementor-widget elementor-widget-heading\" data-id=\"665f05c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Long<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8749f33 elementor-widget elementor-widget-text-editor\" data-id=\"8749f33\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The <code>long<\/code> data type is considered to be an extended size variable that stores four bytes (32 bits). The size range of the <code>long<\/code> data type spans from -2147483648 to 2147483647. When using integers, at least one of the numbers should be followed by the letter L, which enforces the number to be of the <code>long<\/code> data type. Consider the code:<\/p><ol><li><code>long var = val;<\/code><\/li><\/ol><p>where:<\/p><p><strong>var = variable<\/strong><\/p><p><strong>val = value assigned to the variable<\/strong><\/p><p>For example:<\/p><ol><li><code>long speed = 186000L;<\/code><\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4429b67 elementor-widget elementor-widget-heading\" data-id=\"4429b67\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Unsigned long<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3ebc6bb elementor-widget elementor-widget-text-editor\" data-id=\"3ebc6bb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Data types of the <code>unsigned long<\/code> kind are also considered to be extended size variables that store 4 bytes (32 bits). However, this type does not store negative numbers, like other unsigned data types, making its range span from 0 to 4,294,967,295 or (2^32 \u2013 1). Consider the code:<\/p><ol><li><code>unsigned long var = val;<\/code><\/li><\/ol><p>where:<\/p><p><strong>var = variable<\/strong><\/p><p><strong>val = value assigned to the variable<\/strong><\/p><p>For example:<\/p><ol><li><code>unsigned long time;<\/code><\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ff5e7ed elementor-widget elementor-widget-heading\" data-id=\"ff5e7ed\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Byte<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6037c32 elementor-widget elementor-widget-text-editor\" data-id=\"6037c32\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Byte is an unsigned data type that stores values between 0 and 255. Consider the code:<\/p><ol><li><pre>byte var = val;<\/pre><\/li><\/ol><p>where:<\/p><p><strong>var = variable<\/strong><\/p><p><strong>val = value assigned to the variable<\/strong><\/p><p>For example:<\/p><ol><li><code>byte x = 22;<\/code><\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a01011f elementor-widget elementor-widget-heading\" data-id=\"a01011f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Word<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-02a6657 elementor-widget elementor-widget-text-editor\" data-id=\"02a6657\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The word type concerns non-negative numbers written in sixteen bits or two bytes and ranges from 0 to 65535. Let&#8217;s consider the code:<\/p><ol><li><code>word var = val;<\/code><\/li><\/ol><p>where:<\/p><p><strong>var = variable<\/strong><\/p><p><strong>val = value assigned to the variable<\/strong><\/p><p>For example:<\/p><ol><li><code>word d = 5000;<\/code><\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Variables in programming are some of the most important elements that constitute the code of a program. This also applies to programming on the Arduino platform.<\/p>\n","protected":false},"author":20,"featured_media":42594,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[335,336],"tags":[441],"class_list":["post-42593","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino-en","category-interesting-facts","tag-programming"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What types of variables do we have in Arduino? - Botland<\/title>\n<meta name=\"description\" content=\"Variables in programming are some of the most important elements that constitute the code of a program. This also applies to programming on the Arduino platform.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/botland.store\/blog\/what-types-of-variables-do-we-have-in-arduino\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What types of variables do we have in Arduino? - Botland\" \/>\n<meta property=\"og:description\" content=\"Variables in programming are some of the most important elements that constitute the code of a program. This also applies to programming on the Arduino platform.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/botland.store\/blog\/what-types-of-variables-do-we-have-in-arduino\/\" \/>\n<meta property=\"og:site_name\" content=\"Botland\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/Botland\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-18T06:00:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-25T07:01:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/07\/code.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1510\" \/>\n\t<meta property=\"og:image:height\" content=\"1510\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Maciej Figiel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Maciej Figiel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/what-types-of-variables-do-we-have-in-arduino\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/what-types-of-variables-do-we-have-in-arduino\\\/\"},\"author\":{\"name\":\"Maciej Figiel\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#\\\/schema\\\/person\\\/a8e66118d1f27ebf9f540831e5a3283b\"},\"headline\":\"What types of variables do we have in Arduino?\",\"datePublished\":\"2022-02-18T06:00:19+00:00\",\"dateModified\":\"2023-09-25T07:01:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/what-types-of-variables-do-we-have-in-arduino\\\/\"},\"wordCount\":1338,\"publisher\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/what-types-of-variables-do-we-have-in-arduino\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/code.jpg\",\"keywords\":[\"programming\"],\"articleSection\":[\"Arduino\",\"Interesting facts\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/what-types-of-variables-do-we-have-in-arduino\\\/\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/what-types-of-variables-do-we-have-in-arduino\\\/\",\"name\":\"What types of variables do we have in Arduino? - Botland\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/what-types-of-variables-do-we-have-in-arduino\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/what-types-of-variables-do-we-have-in-arduino\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/code.jpg\",\"datePublished\":\"2022-02-18T06:00:19+00:00\",\"dateModified\":\"2023-09-25T07:01:39+00:00\",\"description\":\"Variables in programming are some of the most important elements that constitute the code of a program. This also applies to programming on the Arduino platform.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/what-types-of-variables-do-we-have-in-arduino\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/botland.store\\\/blog\\\/what-types-of-variables-do-we-have-in-arduino\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/what-types-of-variables-do-we-have-in-arduino\\\/#primaryimage\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/code.jpg\",\"contentUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/code.jpg\",\"width\":1510,\"height\":1510},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/what-types-of-variables-do-we-have-in-arduino\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Strona g\u0142\u00f3wna\",\"item\":\"https:\\\/\\\/botland.store\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What types of variables do we have in Arduino?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/\",\"name\":\"Botland\",\"description\":\"Blog Raspberry Pi, Arduino, elektronika i robotyka - Botland\",\"publisher\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#organization\",\"name\":\"Botland\",\"url\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/logo_kolor_WP_2-1.png\",\"contentUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/logo_kolor_WP_2-1.png\",\"width\":250,\"height\":57,\"caption\":\"Botland\"},\"image\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/facebook.com\\\/Botland\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#\\\/schema\\\/person\\\/a8e66118d1f27ebf9f540831e5a3283b\",\"name\":\"Maciej Figiel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/Image-from-iOS-150x150.jpg\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/Image-from-iOS-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/Image-from-iOS-150x150.jpg\",\"caption\":\"Maciej Figiel\"},\"description\":\"Wszechstronny, ch\u0119tnie podejmuje si\u0119 wyzwa\u0144, bo uwa\u017ca, \u017ce jest to najszybsza droga ku rozwojowi. Ceni sobie kontakt z natur\u0105 i aktywny wypoczynek. Pasjonat motoryzacji i nowych technologii.\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/author\\\/maciej-figiel\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What types of variables do we have in Arduino? - Botland","description":"Variables in programming are some of the most important elements that constitute the code of a program. This also applies to programming on the Arduino platform.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/botland.store\/blog\/what-types-of-variables-do-we-have-in-arduino\/","og_locale":"en_US","og_type":"article","og_title":"What types of variables do we have in Arduino? - Botland","og_description":"Variables in programming are some of the most important elements that constitute the code of a program. This also applies to programming on the Arduino platform.","og_url":"https:\/\/botland.store\/blog\/what-types-of-variables-do-we-have-in-arduino\/","og_site_name":"Botland","article_publisher":"https:\/\/facebook.com\/Botland\/","article_published_time":"2022-02-18T06:00:19+00:00","article_modified_time":"2023-09-25T07:01:39+00:00","og_image":[{"width":1510,"height":1510,"url":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/07\/code.jpg","type":"image\/jpeg"}],"author":"Maciej Figiel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Maciej Figiel","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/botland.store\/blog\/what-types-of-variables-do-we-have-in-arduino\/#article","isPartOf":{"@id":"https:\/\/botland.store\/blog\/what-types-of-variables-do-we-have-in-arduino\/"},"author":{"name":"Maciej Figiel","@id":"https:\/\/botland.com.pl\/blog\/#\/schema\/person\/a8e66118d1f27ebf9f540831e5a3283b"},"headline":"What types of variables do we have in Arduino?","datePublished":"2022-02-18T06:00:19+00:00","dateModified":"2023-09-25T07:01:39+00:00","mainEntityOfPage":{"@id":"https:\/\/botland.store\/blog\/what-types-of-variables-do-we-have-in-arduino\/"},"wordCount":1338,"publisher":{"@id":"https:\/\/botland.com.pl\/blog\/#organization"},"image":{"@id":"https:\/\/botland.store\/blog\/what-types-of-variables-do-we-have-in-arduino\/#primaryimage"},"thumbnailUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/07\/code.jpg","keywords":["programming"],"articleSection":["Arduino","Interesting facts"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/botland.store\/blog\/what-types-of-variables-do-we-have-in-arduino\/","url":"https:\/\/botland.store\/blog\/what-types-of-variables-do-we-have-in-arduino\/","name":"What types of variables do we have in Arduino? - Botland","isPartOf":{"@id":"https:\/\/botland.com.pl\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/botland.store\/blog\/what-types-of-variables-do-we-have-in-arduino\/#primaryimage"},"image":{"@id":"https:\/\/botland.store\/blog\/what-types-of-variables-do-we-have-in-arduino\/#primaryimage"},"thumbnailUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/07\/code.jpg","datePublished":"2022-02-18T06:00:19+00:00","dateModified":"2023-09-25T07:01:39+00:00","description":"Variables in programming are some of the most important elements that constitute the code of a program. This also applies to programming on the Arduino platform.","breadcrumb":{"@id":"https:\/\/botland.store\/blog\/what-types-of-variables-do-we-have-in-arduino\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/botland.store\/blog\/what-types-of-variables-do-we-have-in-arduino\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/botland.store\/blog\/what-types-of-variables-do-we-have-in-arduino\/#primaryimage","url":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/07\/code.jpg","contentUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/07\/code.jpg","width":1510,"height":1510},{"@type":"BreadcrumbList","@id":"https:\/\/botland.store\/blog\/what-types-of-variables-do-we-have-in-arduino\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Strona g\u0142\u00f3wna","item":"https:\/\/botland.store\/blog\/"},{"@type":"ListItem","position":2,"name":"What types of variables do we have in Arduino?"}]},{"@type":"WebSite","@id":"https:\/\/botland.com.pl\/blog\/#website","url":"https:\/\/botland.com.pl\/blog\/","name":"Botland","description":"Blog Raspberry Pi, Arduino, elektronika i robotyka - Botland","publisher":{"@id":"https:\/\/botland.com.pl\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/botland.com.pl\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/botland.com.pl\/blog\/#organization","name":"Botland","url":"https:\/\/botland.com.pl\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/botland.com.pl\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2018\/04\/logo_kolor_WP_2-1.png","contentUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2018\/04\/logo_kolor_WP_2-1.png","width":250,"height":57,"caption":"Botland"},"image":{"@id":"https:\/\/botland.com.pl\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/Botland\/"]},{"@type":"Person","@id":"https:\/\/botland.com.pl\/blog\/#\/schema\/person\/a8e66118d1f27ebf9f540831e5a3283b","name":"Maciej Figiel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2021\/12\/Image-from-iOS-150x150.jpg","url":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2021\/12\/Image-from-iOS-150x150.jpg","contentUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2021\/12\/Image-from-iOS-150x150.jpg","caption":"Maciej Figiel"},"description":"Wszechstronny, ch\u0119tnie podejmuje si\u0119 wyzwa\u0144, bo uwa\u017ca, \u017ce jest to najszybsza droga ku rozwojowi. Ceni sobie kontakt z natur\u0105 i aktywny wypoczynek. Pasjonat motoryzacji i nowych technologii.","url":"https:\/\/botland.store\/blog\/author\/maciej-figiel\/"}]}},"_links":{"self":[{"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/posts\/42593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/comments?post=42593"}],"version-history":[{"count":0,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/posts\/42593\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/media\/42594"}],"wp:attachment":[{"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/media?parent=42593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/categories?post=42593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/tags?post=42593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}