Skip to content

Commit 863f46e

Browse files
committed
Updated docs
1 parent c74b490 commit 863f46e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docs/sketch-project-file.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ profiles:
2828
fqbn: <FQBN>
2929
programmer: <PROGRAMMER>
3030
platforms:
31-
- platform: <PLATFORM> (<PLATFORM_VERSION>)
31+
- platform: <PLATFORM> [(<PLATFORM_VERSION>)]
3232
platform_index_url: <3RD_PARTY_PLATFORM_URL>
33-
- platform: <PLATFORM_DEPENDENCY> (<PLATFORM_DEPENDENCY_VERSION>)
33+
- platform: <PLATFORM_DEPENDENCY> [(<PLATFORM_DEPENDENCY_VERSION>)]
3434
platform_index_url: <3RD_PARTY_PLATFORM_DEPENDENCY_URL>
3535
libraries:
3636
- <INDEX_LIB_NAME> (<INDEX_LIB_VERSION>)
@@ -73,6 +73,14 @@ The following fields are available since Arduino CLI 1.1.0:
7373
`baudrate: 115200`) but any setting/value can be specified. Multiple settings can be set. These fields are optional.
7474
- `<PORT_PROTOCOL>` is the protocol for the port used to upload and monitor the board. This field is optional.
7575

76+
#### Using a system-installed platform.
77+
78+
The fields `<PLATFORM_VERSION>` and `<PLATFORM_DEPENDENCY_VERSION>` are optional, if they are omitted, the sketch
79+
compilation will use the platforms installed system-wide. This could be helpful during the development of a platform
80+
(where a specific release is not yet available), or if a specific version of a platform is not a strict requirement.
81+
82+
#### An example of a complete project file.
83+
7684
A complete example of a sketch project file may be the following:
7785

7886
```

0 commit comments

Comments
 (0)