Skip to content

Commit

Permalink
update deprecated arduino-language-server docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Arian8j2 committed Oct 26, 2023
1 parent 6428fca commit b6e67d6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 33 deletions.
17 changes: 6 additions & 11 deletions doc/server_configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ $ arduino-cli sketch new test
$ cd test
```

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.
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.


First gather some information about your board. Make sure your board is connected and run the following:
Expand All @@ -613,27 +613,22 @@ Port Protocol Type Board Name FQBN Core
Then generate the file:

```sh
arduino-cli board attach -p /dev/ttyACM0 test.ino
arduino-cli board attach -p /dev/ttyACM0 -b arduino:avr:uno test.ino
```

The resulting file should like like this:

```json
{
"cpu": {
"fqbn": "arduino:avr:uno",
"name": "Arduino Uno",
"port": "serial:///dev/ttyACM0"
}
}
```yaml
default_fqbn: arduino:avr:uno
default_port: /dev/ttyACM0
```
Your folder structure should look like this:
```
.
├── test.ino
└── sketch.json
└── sketch.yaml
```

For further instruction about configuration options, run `arduino-language-server --help`.
Expand Down
17 changes: 6 additions & 11 deletions doc/server_configurations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ $ arduino-cli sketch new test
$ cd test
```

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.
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.


First gather some information about your board. Make sure your board is connected and run the following:
Expand All @@ -613,27 +613,22 @@ Port Protocol Type Board Name FQBN Core
Then generate the file:

```sh
arduino-cli board attach -p /dev/ttyACM0 test.ino
arduino-cli board attach -p /dev/ttyACM0 -b arduino:avr:uno test.ino
```

The resulting file should like like this:

```json
{
"cpu": {
"fqbn": "arduino:avr:uno",
"name": "Arduino Uno",
"port": "serial:///dev/ttyACM0"
}
}
```yaml
default_fqbn: arduino:avr:uno
default_port: /dev/ttyACM0
```

Your folder structure should look like this:

```
.
├── test.ino
└── sketch.json
└── sketch.yaml
```

For further instruction about configuration options, run `arduino-language-server --help`.
Expand Down
17 changes: 6 additions & 11 deletions lua/lspconfig/server_configurations/arduino_language_server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ $ arduino-cli sketch new test
$ cd test
```
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.
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.
First gather some information about your board. Make sure your board is connected and run the following:
Expand All @@ -60,27 +60,22 @@ Port Protocol Type Board Name FQBN Core
Then generate the file:
```sh
arduino-cli board attach -p /dev/ttyACM0 test.ino
arduino-cli board attach -p /dev/ttyACM0 -b arduino:avr:uno test.ino
```
The resulting file should like like this:
```json
{
"cpu": {
"fqbn": "arduino:avr:uno",
"name": "Arduino Uno",
"port": "serial:///dev/ttyACM0"
}
}
```yaml
default_fqbn: arduino:avr:uno
default_port: /dev/ttyACM0
```
Your folder structure should look like this:
```
.
├── test.ino
└── sketch.json
└── sketch.yaml
```
For further instruction about configuration options, run `arduino-language-server --help`.
Expand Down

0 comments on commit b6e67d6

Please sign in to comment.