File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
content/micropython/03.micropython/01.basics/00. digital-io Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -109,12 +109,12 @@ while True:
109109Let's take a look at what's included in this code example:
110110
111111- ** Import Modules** : We import ` Pin ` from ` machine ` and ` time ` for delays.
112- - ** Initialize LED Pin** : Create a ` Pin ` object, setting the pin number and direction (` Pin.OUT ` ).
112+ - ** Initialize LED Pin** : with the ` Pin ` object, we set the pin number and direction (` Pin.OUT ` ).
113113- ** Main Loop** :
114- - ` led.value(1) ` : Sets the pin to HIGH, turning the LED on.
115- - ` time.sleep(1) ` : Pauses the program for 1 second.
116- - ` led.value(0) ` : Sets the pin to LOW, turning the LED off.
117- - The loop repeats indefinitely, causing the LED to blink.
114+ - ` led.value(1) ` - Sets the pin to HIGH, turning the LED on.
115+ - ` time.sleep(1) ` - Pauses the program for 1 second.
116+ - ` led.value(0) ` - Sets the pin to LOW, turning the LED off.
117+ - ` while True: ` - The loop repeats indefinitely, causing the LED to blink.
118118
119119
120120
You can’t perform that action at this time.
0 commit comments