Skip to content

Commit 3aea511

Browse files
committed
docs: update deprecated arduino-language-server docs
1 parent 6428fca commit 3aea511

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

lua/lspconfig/server_configurations/arduino_language_server.lua

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ $ arduino-cli sketch new test
4646
$ cd test
4747
```
4848
49-
You will need a `sketch.json` file in order for the language server to understand your project. It will also save you passing options to `arduino-cli` each time you compile or upload a file. You can generate the file like using the following commands.
49+
You will need a `sketch.yaml` file in order for the language server to understand your project. It will also save you passing options to `arduino-cli` each time you compile or upload a file. You can generate the file like using the following commands.
5050
5151
5252
First gather some information about your board. Make sure your board is connected and run the following:
@@ -60,27 +60,22 @@ Port Protocol Type Board Name FQBN Core
6060
Then generate the file:
6161
6262
```sh
63-
arduino-cli board attach -p /dev/ttyACM0 test.ino
63+
arduino-cli board attach -p /dev/ttyACM0 -b arduino:avr:uno test.ino
6464
```
6565
6666
The resulting file should like like this:
6767
68-
```json
69-
{
70-
"cpu": {
71-
"fqbn": "arduino:avr:uno",
72-
"name": "Arduino Uno",
73-
"port": "serial:///dev/ttyACM0"
74-
}
75-
}
68+
```yaml
69+
default_fqbn: arduino:avr:uno
70+
default_port: /dev/ttyACM0
7671
```
7772
7873
Your folder structure should look like this:
7974
8075
```
8176
.
8277
├── test.ino
83-
└── sketch.json
78+
└── sketch.yaml
8479
```
8580
8681
For further instruction about configuration options, run `arduino-language-server --help`.

0 commit comments

Comments
 (0)