Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
94e7e7aa
Unverified
Commit
94e7e7aa
authored
Sep 12, 2019
by
Roberto Sora
Committed by
GitHub
Sep 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update README.md to align the getting started instructions to the latest sketch new behavior (#401)
parent
032fa057
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
README.md
README.md
+7
-6
No files found.
README.md
View file @
94e7e7aa
...
...
@@ -90,13 +90,13 @@ IDE has without the graphical UI.
### Step 1. Create a new sketch
The command will create a new empty sketch named
MyFirstSketch in the default directory under
\$
HOME/Arduino/
The command will create a new empty sketch named
`MyFirstSketch`
in the current directory
```
console
$
arduino-cli sketch new MyFirstSketch
Sketch created in: /home/luca/
Arduino/
MyFirstSketch
Sketch created in: /home/luca/MyFirstSketch
$
cat
/home/luca/
Arduino/
MyFirstSketch/MyFirstSketch.ino
$
cat
/home/luca/MyFirstSketch/MyFirstSketch.ino
void setup() {
}
...
...
@@ -106,7 +106,8 @@ void loop() {
### Step 2. Modify your sketch
Use your favourite file editor or IDE to modify the .ino file under:
`$HOME/Arduino/MyFirstSketch/MyFirstSketch.ino`
Use your favourite file editor or IDE to modify the .ino file, in this example
under:
`$HOME/MyFirstSketch/MyFirstSketch.ino`
and change the file to look like this one:
```
C
...
...
@@ -237,7 +238,7 @@ To compile the sketch we have to run the `compile` command with the proper FQBN
previous command.
```
console
$
arduino-cli compile
--fqbn
arduino:samd:mkr1000
Arduino/
MyFirstSketch
$
arduino-cli compile
--fqbn
arduino:samd:mkr1000 MyFirstSketch
Sketch uses 9600 bytes (3%) of program storage space. Maximum is 262144 bytes.
```
...
...
@@ -247,7 +248,7 @@ We can finally upload the sketch and see our board blinking, we now have to spec
used by our board other than the FQBN:
```
console
$
arduino-cli upload
-p
/dev/ttyACM0
--fqbn
arduino:samd:mkr1000
Arduino/
MyFirstSketch
$
arduino-cli upload
-p
/dev/ttyACM0
--fqbn
arduino:samd:mkr1000 MyFirstSketch
No new serial port detected.
Atmel SMART device 0x10010005 found
Device : ATSAMD21G18A
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment