Skip to content

Commit bfd11a3

Browse files
committed
docs: Fix typo in Fading LEDs
1 parent f6e825b commit bfd11a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/tutorial/fading_led.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Code
2727
By examining the :ref:`quickref`, we see that ``X1`` is connected to channel 1 of timer 5 (``TIM5 CH1``). Therefore we will first create a ``Timer`` object for timer 5, then create a ``TimerChannel`` object for channel 1::
2828
2929
from pyb import Timer
30-
from timer import sleep
30+
from time import sleep
3131
3232
# timer 5 will be created with a frequency of 100 Hz
3333
tim = pyb.Timer(5, freq=100)

0 commit comments

Comments
 (0)