Description |
LEDs and GPIOs
Connect individual LEDs to several GPIOs in order to control them using a program. Learn how to use a loop to repeat a section of code multiple times |
Materials |
RaspberrySTEM™ CREATOR kit with Raspberry
Pi
LEDs RaspberrySTEM™ Cell |
Prerequisites |
None
|
from rstem.gpio import Output
led = Output(14)
led.on()
time.sleep(seconds)
.
import time
time.sleep(2)
time.sleep(0.5)
for
loop that runs a specific number of times.
for i in range(5):
print('hello')