Skip to content

Commit e8bb327

Browse files
authored
[skip changelog] Fix typos in documentation (arduino#635)
1 parent 06a328f commit e8bb327

7 files changed

+69
-66
lines changed

docs/CONTRIBUTING.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ same folder.
4242
## Running the tests
4343

4444
There are several checks and test suites in place to ensure the code works as
45-
expected but it's also written in a way that's consistent across the whole
46-
codebase. To avoid pushing changes that will cause the CI system to fail, you
47-
can run most of the tests locally.
45+
expected and is written in a way that's consistent across the whole codebase.
46+
To avoid pushing changes that will cause the CI system to fail, you can run most
47+
of the tests locally.
4848

4949
To ensure code style is consistent, run:
5050

@@ -87,7 +87,8 @@ Being a command line interface, Arduino CLI is heavily interactive and it has to
8787
stay consistent in accepting the user input and providing the expected output
8888
and proper exit codes. On top of this, many Arduino CLI features involve
8989
communicating with external devices, most likely through a serial
90-
port, so unit tests can only put our confidence that the code is working so far.
90+
port, so unit tests can only go so far in giving us confidence that the code is
91+
working.
9192

9293
For these reasons, in addition to regular unit tests the project has a suite of
9394
integration tests that actually run Arduino CLI in a different process and
@@ -166,7 +167,7 @@ command do:
166167
task docs:serve
167168
```
168169

169-
If you dont' see any error, hit http://127.0.0.1:8000 with your browser.
170+
If you don't see any error, hit http://127.0.0.1:8000 with your browser.
170171

171172
## Pull Requests
172173

docs/FAQ.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
When you run `arduino-cli board list`, your board doesn't show up. Possible causes:
44

55
- Your board is a cheaper clone, or
6-
- It mounts a USB2Serial converter like FT232 or CH320: these chips
7-
always reports the same USB VID/PID to the operating system, so the
8-
only thing that we know is that the board mounts that specific
9-
USB2Serial chip, but we don’t know which board is.
6+
- It mounts a USB2Serial converter like FT232 or CH340: these chips
7+
always report the same USB VID/PID to the operating system, so the
8+
only thing we know is that the board mounts that specific
9+
USB2Serial chip, but we don’t know which board that chip is on.
1010

1111
## What's the FQBN string?
1212

1313
For a deeper understanding of how FQBN works, you should understand
14-
Arduino Hardware specification. You can find more information in the
15-
[Arduino platform specification][0].
14+
the [Arduino platform specification][0].
1615

1716

1817
[0]: platform-specification.md

docs/getting-started.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Despite there's no feature parity at the moment, Arduino CLI provides many of
2-
the features you can find in the Arduino IDE, let's see some examples.
1+
Despite the lack of feature parity at the moment, Arduino CLI provides many of
2+
the features you can find in the Arduino IDE. Let's see some examples.
33

44
## Before you start
55

@@ -44,15 +44,15 @@ Use "arduino-cli core [command] --help" for more information about a command.
4444

4545
Arduino CLI doesn't strictly require a configuration file to work because the
4646
command line interface provides any possible functionality. However, having one
47-
can spare you a lot of typing when issuing a command, so let's create it
48-
right ahead with:
47+
can spare you a lot of typing when issuing a command, so let's go ahead and
48+
create it with:
4949

5050
```sh
5151
$ arduino-cli config init
5252
Config file written: /home/luca/.arduino15/arduino-cli.yaml
5353
```
5454

55-
If you inspect `arduino-cli.yaml` contents, you'll find out the available
55+
If you inspect the contents of `arduino-cli.yaml`, you'll find the available
5656
options with their respective default values.
5757

5858
## Create a new sketch
@@ -104,7 +104,7 @@ $ arduino-cli core update-index
104104
Updating index: package_index.json downloaded
105105
```
106106

107-
After connecting the board to your PCs by using the USB cable, you should be
107+
After connecting the board to your PC by using the USB cable, you should be
108108
able to check whether it's been recognized by running:
109109

110110
```sh
@@ -198,8 +198,8 @@ ID Version Name
198198
esp8266:esp8266 2.5.2 esp8266
199199
```
200200

201-
Alternatively, you can pass a link to the the additional package index file with
202-
the `--additional-urls` option, that has to be specified every time and for every
201+
Alternatively, you can pass a link to the additional package index file with the
202+
`--additional-urls` option, that has to be specified every time and for every
203203
command that operates on a 3rd party platform core, for example:
204204

205205
```sh
@@ -213,7 +213,7 @@ esp8266:esp8266 2.5.2 esp8266
213213

214214
## Compile and upload the sketch
215215

216-
To compile the sketch you run the `compile` command passing the proper FQBN
216+
To compile the sketch you run the `compile` command, passing the proper FQBN
217217
string:
218218

219219
```sh

docs/installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.
3030
You can download the latest version of the pre-built binaries for the supported
3131
platforms from the [release page](https://github.com/arduino/arduino-cli/releases)
3232
or following the links in the following table. Once downloaded, extract the
33-
binary `arduino-cli` into a directory that's is in your `PATH`.
33+
binary `arduino-cli` into a directory that is in your `PATH`.
3434

3535
Platform | | |
3636
--------- | ------------------ | ------------------ |

docs/library-specification.md

+29-31
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ This is the specification for the 3rd party library format to be used with Ardui
55
* rev.2.1 will be implemented starting from version 1.6.10
66
* rev.2.2 will be implemented starting from version 1.8.10
77

8-
This new library format is intended to be used in tandem with the Arduino IDE"s **Library Manager**, available since version 1.6.2. The Library Manager allows users to automatically download and install libraries needed in their projects, with an easy to use graphic interface. It doesn't yet take care of dependencies between libraries.
9-
More information about how Library Manager works are available [here](https://github.com/arduino/Arduino/wiki/Library-Manager-FAQ).
8+
This new library format is intended to be used in tandem with the Arduino IDE's **Library Manager**, available since version 1.6.2. The Library Manager allows users to automatically download and install libraries needed in their projects, with an easy to use graphic interface. It doesn't yet take care of dependencies between libraries.
9+
More information about how Library Manager works is available [here](https://github.com/arduino/Arduino/wiki/Library-Manager-FAQ).
1010

1111
Arduino IDE 1.5.x+ supports multiple microcontroller architectures (e.g. AVR, SAM, etc), meaning that libraries may need to work on multiple architectures. The new 1.5 library format doesn’t contain special support for cross-architecture libraries, but it does provide a preprocessor based mechanism for libraries to target sections of code to specific architectures.
1212

@@ -28,31 +28,29 @@ This file allows the *Library Manager* to search and install a library and its d
2828

2929
The library.properties file is a key=value properties list. Every field in this file is UTF-8 encoded. Unless noted otherwise below, **all fields are required**. The available fields are:
3030

31-
* **name** - the name of the library. Library names must contain only basic letters (`A`-`Z` or `a`-`z`) and numbers (`0`-`9`), spaces (` `), underscores (`_`), dots (`.`) and dashes (`-`). It cannot start or end with a space, and also it cannot start with a number. Note that libraries with a `name` value starting with `Arduino` will no longer be allowed [addition to the Library Manager index](https://github.com/arduino/Arduino/wiki/Library-Manager-FAQ) as these names are now reserved for official Arduino libraries.
32-
* **version** - version of the library. Version should be [semver](http://semver.org/) compliant. 1.2.0 is correct; 1.2 is accepted; r5, 003, 1.1c are invalid
33-
* **author** - name/nickname of the authors and their email addresses (not mandatory) separated by comma ","
34-
* **maintainer** - name and email of the maintainer
35-
* **sentence** - a sentence explaining the purpose of the library
36-
* **paragraph** - a longer description of the library. The value of **sentence** always will be prepended, so you should start by writing the second sentence here
37-
* **category** - (defaults to `Uncategorized`) if present, one of these:
38-
* Display
39-
* Communication
40-
* Signal Input/Output
41-
* Sensors
42-
* Device Control
43-
* Timing
44-
* Data Storage
45-
* Data Processing
46-
* Other
47-
* **url** - the URL of the library project, for a person to visit. For example, the library's GitHub page. This is used for the "More info" links in Library Manager
48-
* **architectures** - (defaults to `*`) a comma separated list of architectures supported by the library. If the library doesn’t contain architecture specific code use `*` to match all architectures. This field is used as one factor in determining priority when multiple libraries match an `#include` directive and to provide a warning message when the library is compiled for a board of an architecture that doesn't match any on the list.
49-
* **depends** - **(available from Arduino IDE 1.8.10)** (optional) a comma-separated list of dependencies (libraries that are needed to build the current library). Library Manager will offer to install the dependencies during installation of the library. Since spaces are allowed in the `name` of a library, but not commas, you can refer to libraries containing spaces in the name without ambiguity for example:
50-
51-
`depends=Very long library name, Another library with long-name`
52-
53-
* **dot_a_linkage** - **(available from Arduino IDE 1.6.0 / arduino-builder 1.0.0-beta13)** (optional) when set to `true`, the library will be compiled using a .a (archive) file. First, all source files are compiled into .o files as normal. Then instead of including all .o files in the linker command directly, all .o files are saved into a .a file, which is then included in the linker command. [1.5 format library folder structure](#layout-of-folders-and-files) is required.
54-
* **includes** - **(available from Arduino IDE 1.6.10)** (optional) a comma separated list of files to be added to the sketch as `#include <...>` lines. This property is used with the "Include library" command in the IDE. If the `includes` property is missing all the headers files (.h) on the root source folder are included.
55-
* **precompiled** - **(available from Arduino IDE 1.8.6/arduino-builder 1.4.0)** (optional) set to `true` to allow the use of .a (archive) and .so (shared object) files. The .a/.so file must be located at `src/{build.mcu}` where `{build.mcu}` is the architecture name of the target the file was compiled for. Ex: `cortex-m3` for the Arduino DUE. The static library should be linked as an ldflag.
31+
* **name** - the name of the library. Library names must contain only basic letters (`A`-`Z` or `a`-`z`) and numbers (`0`-`9`), spaces (` `), underscores (`_`), dots (`.`) and dashes (`-`). It cannot start or end with a space, and also it cannot start with a number. Note that libraries with a `name` value starting with `Arduino` will no longer be allowed [addition to the Library Manager index](https://github.com/arduino/Arduino/wiki/Library-Manager-FAQ) as these names are now reserved for official Arduino libraries.
32+
* **version** - version of the library. Version should be [semver](http://semver.org/) compliant. 1.2.0 is correct; 1.2 is accepted; r5, 003, 1.1c are invalid
33+
* **author** - name/nickname of the authors and their email addresses (not mandatory) separated by comma ","
34+
* **maintainer** - name and email of the maintainer
35+
* **sentence** - a sentence explaining the purpose of the library
36+
* **paragraph** - a longer description of the library. The value of **sentence** always will be prepended, so you should start by writing the second sentence here
37+
* **category** - (defaults to `Uncategorized`) if present, one of these:
38+
* Display
39+
* Communication
40+
* Signal Input/Output
41+
* Sensors
42+
* Device Control
43+
* Timing
44+
* Data Storage
45+
* Data Processing
46+
* Other
47+
* **url** - the URL of the library project, for a person to visit. For example, the library's GitHub page. This is used for the "More info" links in Library Manager
48+
* **architectures** - (defaults to `*`) a comma separated list of architectures supported by the library. If the library doesn’t contain architecture specific code use `*` to match all architectures. This field is used as one factor in determining priority when multiple libraries match an `#include` directive and to provide a warning message when the library is compiled for a board of an architecture that doesn't match any on the list.
49+
* **depends** - **(available from Arduino IDE 1.8.10)** (optional) a comma-separated list of dependencies (libraries that are needed to build the current library). Library Manager will offer to install the dependencies during installation of the library. Since spaces are allowed in the `name` of a library, but not commas, you can refer to libraries containing spaces in the name without ambiguity for example:<br>
50+
`depends=Very long library name, Another library with long-name`
51+
* **dot_a_linkage** - **(available from Arduino IDE 1.6.0 / arduino-builder 1.0.0-beta13)** (optional) when set to `true`, the library will be compiled using a .a (archive) file. First, all source files are compiled into .o files as normal. Then instead of including all .o files in the linker command directly, all .o files are saved into a .a file, which is then included in the linker command. [1.5 format library folder structure](#layout-of-folders-and-files) is required.
52+
* **includes** - **(available from Arduino IDE 1.6.10)** (optional) a comma separated list of files to be added to the sketch as `#include <...>` lines. This property is used with the "Include library" command in the IDE. If the `includes` property is missing, all the header files (.h) on the root source folder are included.
53+
* **precompiled** - **(available from Arduino IDE 1.8.6/arduino-builder 1.4.0)** (optional) set to `true` to allow the use of .a (archive) and .so (shared object) files. The .a/.so file must be located at `src/{build.mcu}` where `{build.mcu}` is the architecture name of the target the file was compiled for. Ex: `cortex-m3` for the Arduino DUE. The static library should be linked as an ldflag.
5654
* **ldflags** - **(available from Arduino IDE 1.8.6/arduino-builder 1.4.0)** (optional) the linker flags to be added. Ex: `ldflags=-lm`
5755

5856
Example:
@@ -84,7 +82,7 @@ For 1.5.x+-only libraries, the source code resides in the **src** folder. For ex
8482
Servo/src/Servo.h
8583
Servo/src/Servo.cpp
8684

87-
The source code found in **src** folder and *all its subfolders* is compiled and linked in the user’s sketch. Only the *src* folder is added to the include search path (both when compiling the sketch and the library). When the user imports a library into their sketch (from the "Tools > Import Library" menu), an #include statement will be added for all header (.h) files in the src/ directory (but not its subfolders). As a result, these header files form something of a de facto interface to your library; in general, the only header files in the root src/ folder should be those that you want to expose to the user's sketch and plan to maintain compatibility with in future versions of the library. Place internal header files in a subfolder of the src/ folder.
85+
The source code found in **src** folder and *all its subfolders* is compiled and linked in the user’s sketch. Only the *src* folder is added to the include search path (both when compiling the sketch and the library). When the user imports a library into their sketch (from the "Sketch > Include Library" menu), an `#include` statement will be added for all header (.h) files in the src/ directory (but not its subfolders). As a result, these header files form something of a de facto interface to your library; in general, the only header files in the root src/ folder should be those that you want to expose to the user's sketch and plan to maintain compatibility with in future versions of the library. Place internal header files in a subfolder of the src/ folder.
8886

8987
For backward compatibility with Arduino 1.0.x, the library author may opt to place source code into the root folder, instead of the folder called **src**. In this case the 1.0 library format is applied and the source code is searched from the **library root folder** and the **utility** folder, for example:
9088

@@ -115,7 +113,7 @@ A list of keywords for the library may be specified in a file named keywords.txt
115113

116114
Servo/keywords.txt
117115

118-
An example keywords file:
116+
An example keywords.txt file:
119117
```
120118
# Syntax Coloring Map For ExampleLibrary
121119
@@ -129,7 +127,7 @@ doSomething KEYWORD2
129127
130128
# Constants (LITERAL1)
131129
```
132-
This keywords file would cause the Arduino IDE to highlight `Test` as a DataType, and `doSomething` as a method / function.
130+
This file would cause the Arduino IDE to highlight `Test` as a DataType, and `doSomething` as a method / function.
133131

134132
#### keywords.txt format
135133
keywords.txt is formatted in four fields which are separated by a single true tab (not spaces):
@@ -183,7 +181,7 @@ A hypothetical library named "Servo" that adheres to the specification follows:
183181

184182
## Working with multiple architectures
185183

186-
In 1.5.x+, libraries placed in the user’s sketchbook folder (in the libraries/ subfolder) will be made available for all boards, which may include multiple different processor architectures. To provide architecture-specific code or optimizations, library authors can use the ARDUINO_ARCH_XXX preprocessor macro (#define), where XXX is the name of the architecture (as determined by the name of the folder containing it), e.g. ARDUINO_ARCH_AVR will be defined when compiling for AVR-based boards. For example,
184+
In 1.5.x+, libraries placed in the user’s sketchbook folder (in the libraries/ subfolder) will be made available for all boards, which may include multiple different processor architectures. To provide architecture-specific code or optimizations, library authors can use the `ARDUINO_ARCH_XXX` preprocessor macro (`#define`), where XXX is the name of the architecture (as determined by the name of the folder containing it), e.g. `ARDUINO_ARCH_AVR` will be defined when compiling for AVR-based boards. For example,
187185

188186
#if defined(ARDUINO_ARCH_AVR)
189187
// AVR-specific code

0 commit comments

Comments
 (0)