@@ -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
100100void 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 `
110111and 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
237238previous command.
238239
239240``` console
240- $ arduino-cli compile --fqbn arduino:samd:mkr1000 Arduino/ MyFirstSketch
241+ $ arduino-cli compile --fqbn arduino:samd:mkr1000 MyFirstSketch
241242Sketch 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
247248used 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
251252No new serial port detected.
252253Atmel SMART device 0x10010005 found
253254Device : ATSAMD21G18A
0 commit comments