Skip to content

Commit eb3343a

Browse files
committed
Insert graphics
1 parent 218795f commit eb3343a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: docs/01-threading-basics.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ The advantage of this approach is that a complex and lengthy `loop()` function (
1717
#### Example (Single-Threaded):
1818
This sketch demonstrates how one would implement a program which requires the execution of three different actions on three different periodic intervals. In this example we blink three different LEDs at three different intervals.
1919

20+
![Diagram showing the sequential execution of the tasks](assets/Arduino-Threads-Sequential.svg)
21+
2022
**Blink_Three_LEDs.ino**:
2123

2224
```C++
@@ -59,7 +61,9 @@ You can imagine that with increasing complexity of a sketch it gets quite diffic
5961

6062
#### Example (Multi-Threaded):
6163

62-
The same functionality can be provided via multi-threaded execution in a much cleaner way.
64+
The same functionality can be provided via multi-threaded execution in a much cleaner way by splitting up the tasks into separate files / threads.
65+
66+
![Diagram showing the parallel execution of the tasks](assets/Arduino-Threads-Parallel.svg)
6367

6468
**Blink_Three_LEDs.ino**
6569

0 commit comments

Comments
 (0)