@@ -90,13 +90,13 @@ IDE has without the graphical UI.
90
90
91
91
### Step 1. Create a new sketch
92
92
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
94
94
95
95
``` console
96
96
$ arduino-cli sketch new MyFirstSketch
97
- Sketch created in: /home/luca/Arduino/ MyFirstSketch
97
+ Sketch created in: /home/luca/MyFirstSketch
98
98
99
- $ cat /home/luca/Arduino/ MyFirstSketch/MyFirstSketch.ino
99
+ $ cat /home/luca/MyFirstSketch/MyFirstSketch.ino
100
100
void setup() {
101
101
}
102
102
@@ -106,7 +106,8 @@ void loop() {
106
106
107
107
### Step 2. Modify your sketch
108
108
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 `
110
111
and change the file to look like this one:
111
112
112
113
``` C
@@ -237,7 +238,7 @@ To compile the sketch we have to run the `compile` command with the proper FQBN
237
238
previous command.
238
239
239
240
``` console
240
- $ arduino-cli compile --fqbn arduino:samd:mkr1000 Arduino/ MyFirstSketch
241
+ $ arduino-cli compile --fqbn arduino:samd:mkr1000 MyFirstSketch
241
242
Sketch uses 9600 bytes (3%) of program storage space. Maximum is 262144 bytes.
242
243
```
243
244
@@ -247,7 +248,7 @@ We can finally upload the sketch and see our board blinking, we now have to spec
247
248
used by our board other than the FQBN:
248
249
249
250
``` 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
251
252
No new serial port detected.
252
253
Atmel SMART device 0x10010005 found
253
254
Device : ATSAMD21G18A
0 commit comments