Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 94e7e7a

Browse files
author
Roberto Sora
authored
update README.md to align the getting started instructions to the latest sketch new behavior (arduino#401)
1 parent 032fa05 commit 94e7e7a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ IDE has without the graphical UI.
9090

9191
### Step 1. Create a new sketch
9292

93-
The command will create a new empty sketch named MyFirstSketch in the default directory under \$HOME/Arduino/
93+
The command will create a new empty sketch named `MyFirstSketch` in the current directory
9494

9595
```console
9696
$ arduino-cli sketch new MyFirstSketch
97-
Sketch created in: /home/luca/Arduino/MyFirstSketch
97+
Sketch created in: /home/luca/MyFirstSketch
9898

99-
$ cat /home/luca/Arduino/MyFirstSketch/MyFirstSketch.ino
99+
$ cat /home/luca/MyFirstSketch/MyFirstSketch.ino
100100
void setup() {
101101
}
102102

@@ -106,7 +106,8 @@ void loop() {
106106

107107
### Step 2. Modify your sketch
108108

109-
Use your favourite file editor or IDE to modify the .ino file under: `$HOME/Arduino/MyFirstSketch/MyFirstSketch.ino`
109+
Use your favourite file editor or IDE to modify the .ino file, in this example
110+
under: `$HOME/MyFirstSketch/MyFirstSketch.ino`
110111
and change the file to look like this one:
111112

112113
```C
@@ -237,7 +238,7 @@ To compile the sketch we have to run the `compile` command with the proper FQBN
237238
previous command.
238239

239240
```console
240-
$ arduino-cli compile --fqbn arduino:samd:mkr1000 Arduino/MyFirstSketch
241+
$ arduino-cli compile --fqbn arduino:samd:mkr1000 MyFirstSketch
241242
Sketch uses 9600 bytes (3%) of program storage space. Maximum is 262144 bytes.
242243
```
243244

@@ -247,7 +248,7 @@ We can finally upload the sketch and see our board blinking, we now have to spec
247248
used by our board other than the FQBN:
248249

249250
```console
250-
$ arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:samd:mkr1000 Arduino/MyFirstSketch
251+
$ arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:samd:mkr1000 MyFirstSketch
251252
No new serial port detected.
252253
Atmel SMART device 0x10010005 found
253254
Device : ATSAMD21G18A

0 commit comments

Comments
 (0)