Skip to content

Commit b040193

Browse files
committed
Update digital-io.md
1 parent 66a79a3 commit b040193

File tree

1 file changed

+5
-5
lines changed
  • content/micropython/03.micropython/01.basics/00. digital-io

1 file changed

+5
-5
lines changed

content/micropython/03.micropython/01.basics/00. digital-io/digital-io.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ while True:
109109
Let'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

0 commit comments

Comments
 (0)