Skip to content

Commit b309ab7

Browse files
committed
Use Unix EOL in all files
Use consistent EOL across all files, following the Unix EOL convention established by the reference example files.
1 parent 8370cea commit b309ab7

File tree

81 files changed

+6117
-6117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+6117
-6117
lines changed
Lines changed: 74 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,74 @@
1-
---
2-
title: "isUpperCase()"
3-
categories: [ "Functions" ]
4-
subCategories: [ "Characters" ]
5-
---
6-
7-
= isUpperCase(thisChar)
8-
9-
10-
// OVERVIEW SECTION STARTS
11-
[#overview]
12-
--
13-
14-
[float]
15-
=== Description
16-
Analyse if a char is upper case (that is, a letter in upper case). Returns true if thisChar is upper case.
17-
[%hardbreaks]
18-
19-
20-
[float]
21-
=== Syntax
22-
`isUpperCase(thisChar)`
23-
24-
25-
[float]
26-
=== Parameters
27-
`thisChar`: variable. Allowed data types: `char`.
28-
29-
30-
[float]
31-
=== Returns
32-
`true`: if thisChar is upper case.
33-
34-
--
35-
// OVERVIEW SECTION ENDS
36-
37-
38-
39-
// HOW TO USE SECTION STARTS
40-
[#howtouse]
41-
--
42-
43-
[float]
44-
=== Example Code
45-
46-
[source,arduino]
47-
----
48-
if (isUpperCase(myChar)) { // tests if myChar is an upper case letter
49-
Serial.println("The character is upper case");
50-
}
51-
else {
52-
Serial.println("The character is not upper case");
53-
}
54-
----
55-
56-
--
57-
// HOW TO USE SECTION ENDS
58-
59-
60-
// SEE ALSO SECTION
61-
[#see_also]
62-
--
63-
64-
[float]
65-
=== See also
66-
67-
[role="language"]
68-
* #LANGUAGE# link:../../../variables/data-types/char[char]
69-
* #LANGUAGE# link:../../../structure/control-structure/if[if (conditional operators)]
70-
* #LANGUAGE# link:../../../structure/control-structure/while[while (conditional operators)]
71-
* #LANGUAGE# link:../../communication/serial/read[read()]
72-
73-
--
74-
// SEE ALSO SECTION ENDS
1+
---
2+
title: "isUpperCase()"
3+
categories: [ "Functions" ]
4+
subCategories: [ "Characters" ]
5+
---
6+
7+
= isUpperCase(thisChar)
8+
9+
10+
// OVERVIEW SECTION STARTS
11+
[#overview]
12+
--
13+
14+
[float]
15+
=== Description
16+
Analyse if a char is upper case (that is, a letter in upper case). Returns true if thisChar is upper case.
17+
[%hardbreaks]
18+
19+
20+
[float]
21+
=== Syntax
22+
`isUpperCase(thisChar)`
23+
24+
25+
[float]
26+
=== Parameters
27+
`thisChar`: variable. Allowed data types: `char`.
28+
29+
30+
[float]
31+
=== Returns
32+
`true`: if thisChar is upper case.
33+
34+
--
35+
// OVERVIEW SECTION ENDS
36+
37+
38+
39+
// HOW TO USE SECTION STARTS
40+
[#howtouse]
41+
--
42+
43+
[float]
44+
=== Example Code
45+
46+
[source,arduino]
47+
----
48+
if (isUpperCase(myChar)) { // tests if myChar is an upper case letter
49+
Serial.println("The character is upper case");
50+
}
51+
else {
52+
Serial.println("The character is not upper case");
53+
}
54+
----
55+
56+
--
57+
// HOW TO USE SECTION ENDS
58+
59+
60+
// SEE ALSO SECTION
61+
[#see_also]
62+
--
63+
64+
[float]
65+
=== See also
66+
67+
[role="language"]
68+
* #LANGUAGE# link:../../../variables/data-types/char[char]
69+
* #LANGUAGE# link:../../../structure/control-structure/if[if (conditional operators)]
70+
* #LANGUAGE# link:../../../structure/control-structure/while[while (conditional operators)]
71+
* #LANGUAGE# link:../../communication/serial/read[read()]
72+
73+
--
74+
// SEE ALSO SECTION ENDS
Lines changed: 89 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,89 @@
1-
---
2-
title: "+"
3-
title_expanded: "addition"
4-
categories: [ "Structure" ]
5-
subCategories: [ "Arithmetic Operators" ]
6-
---
7-
8-
9-
10-
11-
12-
= + Addition
13-
14-
15-
// OVERVIEW SECTION STARTS
16-
[#overview]
17-
--
18-
19-
[float]
20-
=== Description
21-
*Addition* is one of the four primary arithmetic operations. The operator `+` (plus) operates on two operands to produce the sum.
22-
[%hardbreaks]
23-
24-
25-
[float]
26-
=== Syntax
27-
`sum = operand1 + operand2;`
28-
29-
[float]
30-
=== Parameters
31-
`sum`: variable. Allowed data types: `int`, `float`, `double`, `byte`, `short`, `long`. +
32-
`operand1`: variable or constant. Allowed data types: `int`, `float`, `double`, `byte`, `short`, `long`. +
33-
`operand2`: variable or constant. Allowed data types: `int`, `float`, `double`, `byte`, `short`, `long`.
34-
35-
--
36-
// OVERVIEW SECTION ENDS
37-
38-
39-
40-
41-
// HOW TO USE SECTION STARTS
42-
[#howtouse]
43-
--
44-
45-
[float]
46-
=== Example Code
47-
48-
[source,arduino]
49-
----
50-
int a = 5;
51-
int b = 10;
52-
int c = 0;
53-
c = a + b; // the variable 'c' gets a value of 15 after this statement is executed
54-
----
55-
[%hardbreaks]
56-
57-
[float]
58-
=== Notes and Warnings
59-
1. The addition operation can overflow if the result is larger than that which can be stored in the data type (e.g. adding 1 to an integer with the value 32,767 gives -32,768).
60-
61-
2. If one of the numbers (operands) are of the type float or of type double, floating point math will be used for the calculation.
62-
63-
3. If the operands are of float / double data type and the variable that stores the sum is an integer, then only the integral part is stored and the fractional part of the number is lost.
64-
65-
[source,arduino]
66-
----
67-
float a = 5.5;
68-
float b = 6.6;
69-
int c = 0;
70-
c = a + b; // the variable 'c' stores a value of 12 only as opposed to the expected sum of 12.1
71-
----
72-
[%hardbreaks]
73-
--
74-
// HOW TO USE SECTION ENDS
75-
76-
77-
78-
79-
// SEE ALSO SECTION
80-
[#see_also]
81-
--
82-
83-
[float]
84-
=== See also
85-
86-
[role="language"]
87-
88-
--
89-
// SEE ALSO SECTION ENDS
1+
---
2+
title: "+"
3+
title_expanded: "addition"
4+
categories: [ "Structure" ]
5+
subCategories: [ "Arithmetic Operators" ]
6+
---
7+
8+
9+
10+
11+
12+
= + Addition
13+
14+
15+
// OVERVIEW SECTION STARTS
16+
[#overview]
17+
--
18+
19+
[float]
20+
=== Description
21+
*Addition* is one of the four primary arithmetic operations. The operator `+` (plus) operates on two operands to produce the sum.
22+
[%hardbreaks]
23+
24+
25+
[float]
26+
=== Syntax
27+
`sum = operand1 + operand2;`
28+
29+
[float]
30+
=== Parameters
31+
`sum`: variable. Allowed data types: `int`, `float`, `double`, `byte`, `short`, `long`. +
32+
`operand1`: variable or constant. Allowed data types: `int`, `float`, `double`, `byte`, `short`, `long`. +
33+
`operand2`: variable or constant. Allowed data types: `int`, `float`, `double`, `byte`, `short`, `long`.
34+
35+
--
36+
// OVERVIEW SECTION ENDS
37+
38+
39+
40+
41+
// HOW TO USE SECTION STARTS
42+
[#howtouse]
43+
--
44+
45+
[float]
46+
=== Example Code
47+
48+
[source,arduino]
49+
----
50+
int a = 5;
51+
int b = 10;
52+
int c = 0;
53+
c = a + b; // the variable 'c' gets a value of 15 after this statement is executed
54+
----
55+
[%hardbreaks]
56+
57+
[float]
58+
=== Notes and Warnings
59+
1. The addition operation can overflow if the result is larger than that which can be stored in the data type (e.g. adding 1 to an integer with the value 32,767 gives -32,768).
60+
61+
2. If one of the numbers (operands) are of the type float or of type double, floating point math will be used for the calculation.
62+
63+
3. If the operands are of float / double data type and the variable that stores the sum is an integer, then only the integral part is stored and the fractional part of the number is lost.
64+
65+
[source,arduino]
66+
----
67+
float a = 5.5;
68+
float b = 6.6;
69+
int c = 0;
70+
c = a + b; // the variable 'c' stores a value of 12 only as opposed to the expected sum of 12.1
71+
----
72+
[%hardbreaks]
73+
--
74+
// HOW TO USE SECTION ENDS
75+
76+
77+
78+
79+
// SEE ALSO SECTION
80+
[#see_also]
81+
--
82+
83+
[float]
84+
=== See also
85+
86+
[role="language"]
87+
88+
--
89+
// SEE ALSO SECTION ENDS

0 commit comments

Comments
 (0)