Learning Raspberry Pi
21
-
Upload
xiao-ling -
Category
Technology
-
view
94 -
download
1
Transcript of Learning Raspberry Pi
3V3 3.3 volts Anything connected to these pins will always get 3.3V of power5V 5 volts Anything connected to these pins will always get 5V of powerGND ground Zero volts, used to complete a circuitGP2 GPIO pin 2 These pins are for general-purpose use and can be configured as input or output pinsID_SC/ID_SD/DNC Special purpose pins
from gpiozero import LEDfrom time import sleep
led = LED(17)
while True:led.on()sleep(1)led.off()sleep(1)