Skip to content

Commit a7f1957

Browse files
Update Lecture3.md
1 parent 9308123 commit a7f1957

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tutorials/Lecture3.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- [Benefits of Abstraction](#benefits-of-abstraction)
66
- [VSCode Instructions](#vscode-instructions)
77
- [Wokwi Instructions](#wokwi-instructions)
8-
- [Implement a non blocking flash method](#implement-a-non-blocking-flash-method)
8+
- [Implement a Non-Blocking Flash Method](#implement-a-non-blocking-flash-method)
99

1010
## Abstraction
1111

@@ -46,12 +46,12 @@ while True:
4646
sleep(0.25)
4747
```
4848

49-
## Implement a non blocking flash method
49+
## Implement a Non-Blocking Flash Method
5050

5151
> [!Important]
5252
> Make sure you edit the in the `project\lib\led_light.py`, not your main.py implementation.
5353
54-
Import time and add new attribute to store a time value when the LED last toggled.
54+
Import time and add a new attribute to store a time value when the LED last toggled.
5555

5656
```python
5757
from time import sleep, time
@@ -60,7 +60,7 @@ from time import sleep, time
6060
super().__init__(pin, Pin.OUT)
6161
self.__last_toggle_time = time()
6262
```
63-
Implement a non blocking flash. This method should be called repeatedly in the main loop. The LED will toggle only if flashing is enabled and 0.5 seconds have elapsed since the last toggle.
63+
Implement a non-blocking flash. This method should be called repeatedly in the main loop. The LED will toggle only if flashing is enabled and 0.5 seconds have elapsed since the last toggle.
6464

6565
```python
6666
def flash(self):

0 commit comments

Comments
 (0)