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: tutorials/Lecture3.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
-[Benefits of Abstraction](#benefits-of-abstraction)
6
6
-[VSCode Instructions](#vscode-instructions)
7
7
-[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)
9
9
10
10
## Abstraction
11
11
@@ -46,12 +46,12 @@ while True:
46
46
sleep(0.25)
47
47
```
48
48
49
-
## Implement a non blocking flash method
49
+
## Implement a Non-Blocking Flash Method
50
50
51
51
> [!Important]
52
52
> Make sure you edit the in the `project\lib\led_light.py`, not your main.py implementation.
53
53
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.
55
55
56
56
```python
57
57
from time import sleep, time
@@ -60,7 +60,7 @@ from time import sleep, time
60
60
super().__init__(pin, Pin.OUT)
61
61
self.__last_toggle_time = time()
62
62
```
63
-
Implement a nonblocking 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.
0 commit comments