Skip to content

Commit fb5355b

Browse files
Update Lecture1.md
1 parent f4c504f commit fb5355b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tutorials/Lecture1.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,14 @@ In this case the Led_Light class inherits the Pin class and without any further
112112

113113
```python
114114
from machine import Pin
115+
from time import sleep
115116

116117
class Led_Light(Pin):
117118
# child class inherits the parent 'Pin' class
118119
def __init__(self, pin):
119120
super().__init__(pin, Pin.OUT)
120121

121-
red_light = Led_Light(3e)
122+
red_light = Led_Light(3)
122123

123124
while True:
124125
red_light.on()

0 commit comments

Comments
 (0)