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/learn/01.starting-guide/00.getting-started-arduino/getting-started-arduino.md
+24-23Lines changed: 24 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,7 @@ Circuits are typically represented as **schematics**, which are the blueprints f
116
116
117
117
All communication between electronic components are facilitated by **electronic signals.** There are two main types of electronic signals: **analog & digital**.
118
118
119
-
### Analog Signal
119
+
####Analog Signal
120
120
121
121

122
122
@@ -128,7 +128,7 @@ If we write an analog signal using Pulse-Width Modulation (PWM), we can use a ra
128
128
129
129
***Read more about [Analog Inputs](/learn/microcontrollers/analog-input) and [Analog Outputs (PWM)](/learn/microcontrollers/analog-output).***
130
130
131
-
### Digital Signal
131
+
####Digital Signal
132
132
133
133

134
134
@@ -168,7 +168,7 @@ There are many types of sensors, and several ways of recording data from them. P
168
168
169
169
Digital sensors are a bit more advanced, depending on the type. They rely on [Serial Communication Protocols](#serial-communication-protocols) to send the data accordingly, and requires a bit more effort to translate the data. As mentioned in the [Electronic Signals](#electronic-signals) section above, data is sent using a binary sequence (e.g. `101101` is `45`), and this needs to be addressed and configured on a software level. Luckily, a lot of sensors are accompanied by **software libraries**, which makes it a lot easier to read.
170
170
171
-
In many cases, all we need is just one line of code:
171
+
In many cases using a library, all we need is just one line of code:
172
172
173
173
```arduino
174
174
sensorValue = sensor.read();
@@ -366,7 +366,7 @@ These features are documented in the **documentation landing page** of each prod
366
366
367
367
***The Arduino IDEs are available for download for free in the [Software downloads page](https://www.arduino.cc/en/software).***
368
368
369
-
Now that we have a bit of background on Arduino hardware, let us move on to another fundamental: the Arduino Software tools.
369
+
Another integral part of the Arduino ecosystem are its software tools.
370
370
371
371
The Arduino IDE, as it is commonly referred to, is an **integrated development environment.** But what does that mean exactly?
372
372
@@ -410,6 +410,14 @@ In 2021, the Arduino IDE 2.0 was released. The new IDE has the same functionalit
410
410
411
411
***Learn more by visiting the [Arduino IDE 2 documentation](/software/ide-v2).***
412
412
413
+
### Web Editor
414
+
415
+

416
+
417
+
The [Arduino Web Editor](https://create.arduino.cc/editor) is an online IDE, part of the Arduino Cloud suite. Similar in function, this editor is completely web based, with online storage among other features. To use the Web Editor, you will need to register an Arduino account.
418
+
419
+
***Learn more by visiting the [Web Editor documentation](/cloud/web-editor).***
420
+
413
421
### Arduino IoT Cloud
414
422
415
423

@@ -420,13 +428,6 @@ The cloud is made for **anyone** to use, and it does not require much previous e
420
428
421
429
***Get started by reading the [Getting Started with the Arduino IoT Cloud](/cloud/iot-cloud/tutorials/iot-cloud-getting-started) guide, or visit the [full documentation](/cloud/iot-cloud).***
422
430
423
-
### Web Editor
424
-
425
-

426
-
427
-
The [Arduino Web Editor](https://create.arduino.cc/editor) is an online IDE, part of the Arduino Cloud suite. Similar in function, this editor is completely web based, with online storage among other features. To use the Web Editor, you will need to register an Arduino account.
428
-
429
-
***Learn more by visiting the [Web Editor documentation](/cloud/web-editor).***
430
431
431
432
### Library Manager
432
433
@@ -483,10 +484,10 @@ The classic blink sequence is found in the snippet below:
483
484
```arduino
484
485
void loop() {
485
486
486
-
digitalWrite(LED, HIGH); //turn on an LED
487
-
delay(1000); //as program is paused, with the LED on
488
-
digitalWrite(LED, LOW); //program is unpaused, and the LED is turned off
489
-
delay(1000); //program is paused, with the LED off
487
+
digitalWrite(LED, HIGH); //turn on an LED
488
+
delay(1000); //as program is paused, with the LED on
489
+
digitalWrite(LED, LOW); //program is unpaused, and the LED is turned off
490
+
delay(1000); //program is paused, with the LED off
490
491
491
492
}
492
493
```
@@ -520,15 +521,15 @@ void loop() {
520
521
//check time since program started, and store in "currentMillis"
521
522
unsigned long currentMillis = millis();
522
523
523
-
//conditional that checks whether 1 second has passed since last event
524
-
if (currentMillis - previousMillis_1 >= interval_1) {
525
-
//execute a piece of code, every *1 second*
526
-
}
524
+
//conditional that checks whether 1 second has passed since last event
525
+
if (currentMillis - previousMillis_1 >= interval_1) {
526
+
//execute a piece of code, every *1 second*
527
+
}
527
528
528
-
//conditional that checks whether 2 seconds have passed since last event
529
-
if (currentMillis - previousMillis_2 >= interval_2) {
529
+
//conditional that checks whether 2 seconds have passed since last event
530
+
if (currentMillis - previousMillis_2 >= interval_2) {
530
531
//execute a piece of code, every *2 seconds*
531
-
}
532
+
}
532
533
533
534
}
534
535
```
@@ -537,7 +538,7 @@ While the `millis()` function is a more advanced concept than the `delay()` func
537
538
538
539
#### Functions
539
540
540
-
***Learn more about [functions](/learn/programming/functions).***
541
+
***Learn more about [Arduino functions](/learn/programming/functions).***
541
542
542
543
You can create custom functions that either just executes code and returns to the program, or that returns a result.
0 commit comments