Skip to content

Commit b7933e7

Browse files
committed
#4 - small README.MD update
1 parent 84b184e commit b7933e7

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@ void setup() {
154154
}
155155
```
156156
That's all there is to it! If you push this program to your (compatible) microcontroller, it will immediately start printing the following into your Serial console (once per second):
157-
158-
>MyFirstThread::OnLoop() - Thread 1 - On CPU 0, Counter = 0
159-
>MyFirstThread::OnLoop() - Thread 1 - On CPU 0, Counter = 1
160-
>MyFirstThread::OnLoop() - Thread 1 - On CPU 0, Counter = 2
161-
>MyFirstThread::OnLoop() - Thread 1 - On CPU 0, Counter = 3
162-
157+
```
158+
MyFirstThread::OnLoop() - Thread 1 - On CPU 0, Counter = 0
159+
MyFirstThread::OnLoop() - Thread 1 - On CPU 0, Counter = 1
160+
MyFirstThread::OnLoop() - Thread 1 - On CPU 0, Counter = 2
161+
MyFirstThread::OnLoop() - Thread 1 - On CPU 0, Counter = 3
162+
```
163163
### What about the `loop()` method?
164164
Your existing `loop()` method will continue to operate exactly as it always has. On the ESP32, the default `loop()` method executes on CPU 1, while you will notice that your instance of `MyFirstThread` (`thread1` in the above sample code) is running on CPU 0.
165165

@@ -220,12 +220,14 @@ void setup() {
220220
```
221221

222222
We've now added two additional threads, so our output will look something like this:
223-
>MyFirstThread::OnLoop() - Thread 1 - On CPU 0, Counter = 1
224-
>MyFirstThread::OnLoop() - Thread 2 - On CPU 1, Counter = 1
225-
>MyFirstThread::OnLoop() - Thread 3 - On CPU 0, Counter = 1
226-
>MyFirstThread::OnLoop() - Thread 1 - On CPU 0, Counter = 2
227-
>MyFirstThread::OnLoop() - Thread 3 - On CPU 0, Counter = 2
228-
>MyFirstThread::OnLoop() - Thread 2 - On CPU 1, Counter = 2
223+
```
224+
MyFirstThread::OnLoop() - Thread 1 - On CPU 0, Counter = 1
225+
MyFirstThread::OnLoop() - Thread 2 - On CPU 1, Counter = 1
226+
MyFirstThread::OnLoop() - Thread 3 - On CPU 0, Counter = 1
227+
MyFirstThread::OnLoop() - Thread 1 - On CPU 0, Counter = 2
228+
MyFirstThread::OnLoop() - Thread 3 - On CPU 0, Counter = 2
229+
MyFirstThread::OnLoop() - Thread 2 - On CPU 1, Counter = 2
230+
```
229231

230232
The explicit maximum number of *ESPresio* `Thread`s supported by the library is 256, however the *practical limit* depends entirely on the specifications of your microcontroller. It's almost certainly going to be considerably lower than 256!
231233

0 commit comments

Comments
 (0)