learning raspberry pi

21

Upload: xiao-ling

Post on 21-Jan-2018

94 views

Category:

Technology


1 download

TRANSCRIPT

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)