Added code for Lab 9
This commit is contained in:
parent
4c5757b3cc
commit
5f40f4c866
24 changed files with 796 additions and 0 deletions
13
Lab09/MicroPython/Code/blink.py
Normal file
13
Lab09/MicroPython/Code/blink.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import machine
|
||||
|
||||
import time
|
||||
|
||||
led = machine.Pin("LED", machine.Pin.OUT) #configure GPIO-15 Pin as an output pin and create and led object for Pin class
|
||||
|
||||
while True:
|
||||
led.value(True) #turn on the LED
|
||||
time.sleep(1) #wait for one second
|
||||
led.value(False) #turn off the LED
|
||||
time.sleep(1) #wait for one second
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue