You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/arduino-cloud/03.cloud-interface/00.sketches/sketches.md
+21-9Lines changed: 21 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -8,23 +8,35 @@ author: Karl Söderby
8
8
A sketch is a file where we write programs to run on our Arduino boards. Sketches have a `.ino` extension, which supports the Arduino programming language (a variant of C++).
9
9
10
10
The Arduino Cloud has two categories of sketches:
11
-
-**Regular sketch** - a single `.ino` file where you write a program. These sketches can be used for **any** Arduino board.
12
-
-**IoT Sketch** - a set of files that are automatically generated when creating a [Thing](/arduino-cloud/cloud-interface/things). This includes an `.ino` file and two header (`.h`) files that contain your Thing configuration + credentials. Only available for boards with IoT support.
11
+
-**Sketch** - a single `.ino` file where you write a program. These sketches can be used for **any** Arduino board.
12
+
-**Sketch with attached Thing** - a set of files that are automatically generated when creating a [Thing](/arduino-cloud/cloud-interface/things). This includes an `.ino` file and two header (`.h`) files that contain your Thing configuration + credentials. Only available for boards with Arduino Cloud support.
13
13
14
-
In this document we will take a look at how to use sketches in the Arduino Cloud environment.
14
+
In this document, we will take a look at how to use sketches in the Arduino Cloud environment.
15
15
16
16
***If you need help getting started with programming your Arduino in the online environment, check out the [Cloud Editor](/arduino-cloud/guides/cloud-editor) tutorial.***
17
17
18
18
## Access Your Sketches
19
19
20
-
You can access all your sketches at [app.arduino.cc/sketches](https://app.arduino.cc/sketches), where you can easily select between your regular sketches and IoT sketches.
20
+
You can access all your sketches at [app.arduino.cc/sketches](https://app.arduino.cc/sketches). Here you can easily see if your sketch has a Thing connected to it by checking if it has a light blue text box next to it.
21
21
22
-

22
+

23
23
24
24
Clicking on each sketch will direct you to the [Cloud Editor](https://create.arduino.cc/editor/), which is an online version of the Arduino IDE. Here you can write a program, compile it and upload it to your board.
25
25
26
26
***To get started with the Cloud Editor, check out the [Cloud Editor](/arduino-cloud/guides/cloud-editor) tutorial.***
27
27
28
+
### How to Create and Organize Folders
29
+
30
+
You can easily organize your sketches by creating folders. Here’s how you can do it:
31
+
32
+
**Create a New Folder**: Click on **Create**, then select **New Folder**.
33
+
34
+
**Move Sketches into a Folder**:
35
+
36
+
-**Drag and Drop**: Simply drag the sketch you want to move and drop it into the desired folder.
37
+
38
+
-**Right-Click and Move**: Alternatively, click the three dots on the right, choose the option "Move to folder", and then select the folder you want to move it to.
39
+
28
40
## Regular Sketches
29
41
30
42
A regular sketch in the Arduino Cloud is exactly like a sketch used in the [Arduino IDE](/software/ide-v2), with no difference whatsoever. You can take a sketch from the online IDE and compile it in the offline IDE.
@@ -45,11 +57,11 @@ If you are new to the Arduino environment, you can check out the [Language Refer
45
57
46
58
For specific features of a board, make sure to check out the [hardware documentation](/).
47
59
48
-
## IoT Sketches
60
+
## Sketches with an attached Thing
49
61
50
-
IoT sketches are more complex and are generated automatically when you create a Thing and variables.
62
+
Sketches with an attached Thing are more complex and are generated automatically when you create a Thing and variables.
51
63
52
-
***Read more about this in the [Automatic Sketch Generation](/arduino-cloud/cloud-interface/sketches) documentation.***
64
+
***Read more about [Things](/arduino-cloud/cloud-interface/things/).***
53
65
54
66
### Sketch File
55
67
@@ -122,7 +134,7 @@ The Remote Sketchbook feature is great as you can push/pull your sketches from t
122
134
***A very important note on Remote Sketchbook: when you push/pull a sketch, you will overwrite the existing sketch, similarly to how GitHub works, but without the option of retrieving your previous sketch.***
123
135
124
136
125
-
## Recommended Code Practices (IoT Sketches)
137
+
## Recommended Code Practices (Sketches with an attached Thing)
126
138
127
139
This section highlights some important aspects of writing code with regard to the implementations in the [ArduinoIoTCloud](https://github.com/arduino-libraries/ArduinoIoTCloud).
0 commit comments