Skip to content

Commit c53dab4

Browse files
author
smellai
committed
aligned to last en
1 parent a01017f commit c53dab4

File tree

28 files changed

+205
-112
lines changed

28 files changed

+205
-112
lines changed

Language/Functions/Advanced IO/shiftOut.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Shifts out a byte of data one bit at a time. Starts from either the most (i.e. t
1717

1818
Note- if you're interfacing with a device that's clocked by rising edges, you'll need to make sure that the clock pin is low before the call to `shiftOut()`, e.g. with a call to `digitalWrite(clockPin, LOW)`.
1919

20-
This is a software implementation; see also the linkhttps://www.arduino.cc/en/Reference/SPI[SPI library], which provides a hardware implementation that is faster but works only on specific pins.
20+
This is a software implementation; see also the https://www.arduino.cc/en/Reference/SPI[SPI library], which provides a hardware implementation that is faster but works only on specific pins.
2121
[%hardbreaks]
2222

2323

@@ -54,7 +54,7 @@ Nothing
5454
[float]
5555
=== Example Code
5656
// Describe what the example code is all about and add relevant code ►►►►► THIS SECTION IS MANDATORY ◄◄◄◄◄
57-
For accompanying circuit, see the http://arduino.cc/en/Tutorial/ShiftOut[tutorial on controlling a 74HC595 shift register].
57+
For accompanying circuit, see the https://arduino.cc/en/Tutorial/ShiftOut[tutorial on controlling a 74HC595 shift register].
5858

5959
[source,arduino]
6060
----

Language/Functions/Analog IO/analogRead.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ subCategories: [ "Analog I/O" ]
1616

1717
[float]
1818
=== Description
19-
Reads the value from the specified analog pin. The Arduino board contains a 6 channel (8 channels on the Mini and Nano, 16 on the Mega), 10-bit analog to digital converter. This means that it will map input voltages between 0 and 5 volts into integer values between 0 and 1023. This yields a resolution between readings of: 5 volts / 1024 units or, .0049 volts (4.9 mV) per unit. The input range and resolution can be changed using link:../analogreference[analogReference()]`.
19+
Reads the value from the specified analog pin. The Arduino board contains a 6 channel (8 channels on the Mini and Nano, 16 on the Mega), 10-bit analog to digital converter. This means that it will map input voltages between 0 and 5 volts into integer values between 0 and 1023. This yields a resolution between readings of: 5 volts / 1024 units or, .0049 volts (4.9 mV) per unit. The input range and resolution can be changed using link:../analogreference[analogReference()].
2020

2121
It takes about 100 microseconds (0.0001 s) to read an analog input, so the maximum reading rate is about 10,000 times a second.
2222
[%hardbreaks]

Language/Functions/Analog IO/analogReference.adoc

+17-1
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,27 @@ subCategories: [ "Analog I/O" ]
1919
=== Description
2020
Configures the reference voltage used for analog input (i.e. the value used as the top of the input range). The options are:
2121

22+
Arduino AVR Boards (Uno, Mega, etc.)
23+
2224
* DEFAULT: the default analog reference of 5 volts (on 5V Arduino boards) or 3.3 volts (on 3.3V Arduino boards)
2325
* INTERNAL: an built-in reference, equal to 1.1 volts on the ATmega168 or ATmega328P and 2.56 volts on the ATmega8 (not available on the Arduino Mega)
2426
* INTERNAL1V1: a built-in 1.1V reference (Arduino Mega only)
2527
* INTERNAL2V56: a built-in 2.56V reference (Arduino Mega only)
2628
* EXTERNAL: the voltage applied to the AREF pin (0 to 5V only) is used as the reference.
29+
30+
Arduino SAMD Boards (Zero, etc.)
31+
32+
* AR_DEFAULT: the default analog reference of 3.3V
33+
* AR_INTERNAL: a built-in 2.23V reference
34+
* AR_INTERNAL1V0: a built-in 1.0V reference
35+
* AR_INTERNAL1V65: a built-in 1.65V reference
36+
* AR_INTERNAL2V23: a built-in 2.23V reference
37+
* AR_EXTERNAL: the voltage applied to the AREF pin is used as the reference
38+
39+
Arduino SAM Boards (Due)
40+
41+
* AR_DEFAULT: the default analog reference of 3.3V. This is the only supported option for the Due.
42+
2743
[%hardbreaks]
2844

2945

@@ -34,7 +50,7 @@ Configures the reference voltage used for analog input (i.e. the value used as t
3450

3551
[float]
3652
=== Parameters
37-
`type`: which type of reference to use (DEFAULT, INTERNAL, INTERNAL1V1, INTERNAL2V56, or EXTERNAL).
53+
`type`: which type of reference to use (see list of options in the description).
3854

3955
[float]
4056
=== Returns

Language/Functions/Characters/isHexadecimalDigit.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
title: "isHexadecimalDigit()"
33
categories: [ "Functions" ]
44
subCategories: [ "Characters" ]
@@ -25,7 +25,7 @@ Analyse if a char is an hexadecimal digit (A-F, 0-9). Returns true if thisChar c
2525
=== Syntax
2626
[source,arduino]
2727
----
28-
`isHexadecilamDigit(thisChar)`
28+
`isHexadecimalDigit(thisChar)`
2929
----
3030

3131
[float]
@@ -79,4 +79,4 @@ else
7979
* #LANGUAGE# link:../../communication/serial/read[read()]
8080

8181
--
82-
// SEE ALSO SECTION ENDS
82+
// SEE ALSO SECTION ENDS

Language/Functions/Communication/Serial/available.adoc

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
title: Serial.available()
33
---
44

5-
6-
7-
85
= available()
96

107

@@ -31,20 +28,21 @@ _Arduino Mega only:_
3128

3229
[float]
3330
=== Parameters
34-
Nothing
31+
None
3532

3633
[float]
3734
=== Returns
3835
The number of bytes available to read .
3936
--
4037
// OVERVIEW SECTION ENDS
4138

42-
43-
44-
4539
// HOW TO USE SECTION STARTS
4640
[#howtouse]
4741
--
42+
[float]
43+
=== Example Code
44+
// Describe what the example code is all about and add relevant code ►►►►► THIS SECTION IS MANDATORY ◄◄◄◄◄
45+
The following code returns a character received through the serial port.
4846

4947
[source,arduino]
5048
----
@@ -56,7 +54,7 @@ void setup() {
5654
5755
void loop() {
5856
59-
// send data only when you receive data:
57+
// reply only when you receive data:
6058
if (Serial.available() > 0) {
6159
// read the incoming byte:
6260
incomingByte = Serial.read();
@@ -70,6 +68,8 @@ void loop() {
7068
[%hardbreaks]
7169

7270
*Arduino Mega example:*
71+
This code sends data received in one serial port of the Arduino Mega to another. This can be used, for example, to connect a serial device to the computer through the Arduino board.
72+
7373
[source,arduino]
7474
----
7575
void setup() {

Language/Functions/Communication/Serial/println.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ title: Serial.println()
1414

1515
[float]
1616
=== Description
17-
Prints data to the serial port as human-readable ASCII text followed by a carriage return character (ASCII 13, or '\r') and a newline character (ASCII 10, or '\n'). This command takes the same forms as link:../print[Serial.print().
17+
Prints data to the serial port as human-readable ASCII text followed by a carriage return character (ASCII 13, or '\r') and a newline character (ASCII 10, or '\n'). This command takes the same forms as link:../print[Serial.print()].
1818
[%hardbreaks]
1919

2020

Language/Functions/Communication/Serial/readBytesUntil.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ title: Serial.readBytesUntil()
1414

1515
[float]
1616
=== Description
17-
Serial.readBytesUntil() reads characters from the serial buffer into an array. The function terminates if the terminator character is detected, the determined length has been read, or it times out (see link:../settimeout[Serial.setTimeout()]).
17+
Serial.readBytesUntil() reads characters from the serial buffer into an array. The function terminates if the terminator character is detected, the determined length has been read, or it times out (see link:../settimeout[Serial.setTimeout()]). The function returns the characters up to the last character before the supplied terminator. The terminator itself is not returned in the buffer.
1818

1919
`Serial.readBytesUntil()` returns the number of characters read into the buffer. A 0 means no valid data was found.
2020

Language/Functions/Communication/Stream/streamReadBytes.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ title: Stream.readBytes()
1414

1515
[float]
1616
=== Description
17-
`readBytes()` read characters from a stream into a buffer. The function terminates if the determined length has been read, or it times out (see link:../streamSetTimeout[setTimeout()]).
17+
`readBytes()` read characters from a stream into a buffer. The function terminates if the determined length has been read, or it times out (see link:../streamsettimeout[setTimeout()]).
1818

1919
`readBytes()` returns the number of bytes placed in the buffer. A 0 means no valid data was found.
2020

@@ -40,4 +40,4 @@ This function is part of the Stream class, and is called by any class that inher
4040
The number of bytes placed in the buffer (`size_t`)
4141

4242
--
43-
// OVERVIEW SECTION ENDS
43+
// OVERVIEW SECTION ENDS

Language/Functions/Communication/serial.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ link:../serial/serialevent[serialEvent()]
7373
=== See also
7474

7575
[role="example"]
76-
* #EXAMPLE# https://www.arduino.cc/en/Tutorial/ReadAsciiString[ReadAsciiString^]
76+
* #EXAMPLE# https://www.arduino.cc/en/Tutorial/ReadASCIIString[ReadASCIIString^]
7777
* #EXAMPLE# https://www.arduino.cc/en/Tutorial/ASCIITable[ASCII TAble^]
7878
* #EXAMPLE# https://www.arduino.cc/en/Tutorial/Dimmer[Dimmer^]
7979
* #EXAMPLE# https://www.arduino.cc/en/Tutorial/Graph[Graph^]

Language/Functions/Random Numbers/random.adoc

+2
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,7 @@ If it is important for a sequence of values generated by `random()` to differ, o
8686

8787
Conversely, it can occasionally be useful to use pseudo-random sequences that repeat exactly. This can be accomplished by calling `randomSeed()` with a fixed number, before starting the random sequence.
8888

89+
The `max` parameter should be chosen according to the data type of the variable in which the value is stored. In any case, the absolute maximum is bound to the `long` nature of the value generated (32 bit - 2,147,483,647). Setting `max` to a higher value won't generate an error during compilation, but during sketch execution the numbers generated will not be as expected.
90+
8991
--
9092
// HOW TO USE SECTION ENDS

Language/Functions/Random Numbers/randomSeed.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Conversely, it can occasionally be useful to use pseudo-random sequences that re
3030

3131
[float]
3232
=== Parameters
33-
`long`, `int` - pass a number to generate the seed.
33+
`seed` - number to initialize the pseudo-random sequence (unsigned long).
3434

3535
[float]
3636
=== Returns

Language/Structure/Bitwise Operators/bitwiseXor.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int z = x ^ y; // binary: 0110, or decimal 6
4949
----
5050
[%hardbreaks]
5151

52-
The ^ operator is often used to toggle (i.e. change from 0 to 1, or 1 to 0) some of the bits in an integer expression. In a bitwise OR operation if there is a 1 in the mask bit, that bit is inverted; if there is a 0, the bit is not inverted and stays the same. Below is a program to blink digital pin 5.
52+
The ^ operator is often used to toggle (i.e. change from 0 to 1, or 1 to 0) some of the bits in an integer expression. In a bitwise XOR operation if there is a 1 in the mask bit, that bit is inverted; if there is a 0, the bit is not inverted and stays the same. Below is a program to blink digital pin 5.
5353

5454
[source,arduino]
5555
----
@@ -82,4 +82,4 @@ delay(100);
8282
* #EXAMPLE# https://www.arduino.cc/playground/Code/BitMath[BitMath Tutorial^]
8383

8484
--
85-
// SEE ALSO SECTION ENDS
85+
// SEE ALSO SECTION ENDS

Language/Structure/Control Structure/doWhile.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: do...While
2+
title: do...while
33
categories: [ "Structure" ]
44
subCategories: [ "Control Structure" ]
55
---

Language/Structure/Control Structure/switchCase.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: switchCase
2+
title: switch...case
33
categories: [ "Structure" ]
44
subCategories: [ "Control Structure" ]
55
---

Language/Structure/Pointer Access Operators/reference.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "&"
3-
title_expanded: reference opearator
3+
title_expanded: reference operator
44
categories: [ "Structure" ]
55
subCategories: [ "Pointer Access Operators" ]
66
---

Language/Structure/Sketch/loop.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ int buttonPin = 3;
3737
// setup initializes serial and the button pin
3838
void setup()
3939
{
40-
beginSerial(9600);
40+
Serial.begin(9600);
4141
pinMode(buttonPin, INPUT);
4242
}
4343
@@ -46,9 +46,9 @@ void setup()
4646
void loop()
4747
{
4848
if (digitalRead(buttonPin) == HIGH)
49-
serialWrite('H');
49+
Serial.write('H');
5050
else
51-
serialWrite('L');
51+
Serial.write('L');
5252
5353
delay(1000);
5454
}

Language/Variables/Data Types/String/Operators/comparison.adoc

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
---
1+
---
22
title: "=="
33
title_expanded: comparison
44
categories: [ "Data Types" ]
55
subCategories: [ "StringObject Operator" ]
66
---
77

8-
9-
10-
11-
128
= == Comparison
139

1410

@@ -37,7 +33,6 @@ string1 == string2
3733

3834
[float]
3935
=== Returns
40-
The nth char of the string. Same as charAt().
4136
`true`: if string1 equals string2
4237

4338
`false`: otherwise
@@ -60,4 +55,4 @@ The nth char of the string. Same as charAt().
6055
[role="example"]
6156
* #EXAMPLE# link: https://www.arduino.cc/en/Tutorial/BuiltInExamples#strings[Built-in String Tutorials]
6257
--
63-
// SEE ALSO SECTION ENDS
58+
// SEE ALSO SECTION ENDS

Language/Variables/Data Types/String/Operators/greaterThanOrEqualTo.adoc

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
1-
---
1+
---
22
title: ">="
33
title_expanded: greater than or equal to
44
categories: [ "Data Types" ]
55
subCategories: [ "StringObject Operator" ]
66
---
77

8-
9-
10-
11-
128
= >= Greater Than Or Equal To
139

14-
1510
// OVERVIEW SECTION STARTS
1611
[#overview]
1712
--
1813

1914
[float]
2015
=== Description
21-
Tests if the string on the left is greater than the string on the right. This operator evaluate strings in alphabetical order, on the first character where the two differ. So, for example "b" >= "a" and "2" >= "1", but "999" >= "1000" because 9 comes after 1.
16+
Tests if the string on the left is greater than, or equal to, the string on the right. This operator evaluate strings in alphabetical order, on the first character where the two differ. So, for example "b" >= "a" and "2" >= "1", but "999" >= "1000" because 9 comes after 1.
2217

2318
Caution: String comparison operators can be confusing when you're comparing numeric strings, because the numbers are treated as strings and not as numbers. If you need to compare numbers numerically, compare them as ints, floats, or longs, and not as Strings.
2419

@@ -61,4 +56,4 @@ string1 >= string2
6156
[role="example"]
6257
* #EXAMPLE# link: https://www.arduino.cc/en/Tutorial/BuiltInExamples#strings[Built-in String Tutorials]
6358
--
64-
// SEE ALSO SECTION ENDS
59+
// SEE ALSO SECTION ENDS

Language/Variables/Data Types/String/Operators/lessThan.adoc

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
---
1+
---
22
title: "<"
33
title_expanded: less thans
44
categories: [ "Data Types" ]
55
subCategories: [ "StringObject Operator" ]
66
---
77

8-
9-
10-
11-
128
= < Less Than
139

14-
1510
// OVERVIEW SECTION STARTS
1611
[#overview]
1712
--
@@ -38,7 +33,7 @@ string1 < string2
3833

3934
[float]
4035
=== Returns
41-
`true`: if string1 is greater than string2
36+
`true`: if string1 is less than string2
4237

4338
`false`: otherwise
4439
--
@@ -60,4 +55,4 @@ string1 < string2
6055
[role="example"]
6156
* #EXAMPLE# link: https://www.arduino.cc/en/Tutorial/BuiltInExamples#strings[Built-in String Tutorials]
6257
--
63-
// SEE ALSO SECTION ENDS
58+
// SEE ALSO SECTION ENDS

Language/Variables/Data Types/array.adoc

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ subCategories: [ "Data Types" ]
1818
[float]
1919
=== Description
2020
An array is a collection of variables that are accessed with an index number. Arrays in the C programming language, on which Arduino is based, can be complicated, but using simple arrays is relatively straightforward.
21+
[float]
2122
=== Creating (Declaring) an Array
2223

2324
All of the methods below are valid ways to create (declare) an array.
@@ -106,4 +107,4 @@ For a complete program that demonstrates the use of arrays, see the (http://www.
106107

107108

108109
--
109-
// SEE ALSO SECTION ENDS
110+
// SEE ALSO SECTION ENDS

0 commit comments

Comments
 (0)