Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ikostan authored Jun 26, 2024
1 parent 3f9f89b commit 5a984f9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lessons/lesson_2/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
"""

import time
from machine import Pin
from machine import Pin # pylint: disable=import-error


led = Pin(15, Pin.OUT)
LED = Pin(15, Pin.OUT)

if __name__ == '__main__':

while True:
print("LED is off")
led.value(0)
LED.value(0)
time.sleep(0.5)
print("LED is on")
led.value(1)
time.sleep(1)
LED.value(1)
time.sleep(1) # fmt: skip

0 comments on commit 5a984f9

Please sign in to comment.