My little Set up

My little Set up

AkaSoggyBunz

1 десятилетие назад

44 Просмотров

This is my setup where I upload my videos, work on my pi. I will also show you a blinking LED powered by the pi.

CODE: (from TheRaspberryPiGuy)
import RPi.GPIO as gpio
import time

#set up pin 14 as an output
gpio.setmode(gpio.BCM)
gpio.setup(14, gpio.OUT)

#Make an LED flash on and off forever
while True: gpio.output(14, gpio.HIGH) time.sleep(1) gpio.output(14, gpio.LOW) time.sleep(1)

######IMPORTANT!!!! you may need to install a few libraries in the terminal window just type these:
$sudo apt-get update
$sudo apt-get install python-dev
$sudo apt-get install python-rpi.gpio

Leave any comments if you have any problems
a good link:
http://learn.adafruit.com/playing-sounds-and-using-buttons-with-raspberry-pi/install-python-module-rpi-dot-gpio My Amazon Link: https://www.amazon.com/b?_encoding=UTF8&tag=akasoggybunz-20&linkCode=ur2&linkId=c88baa1b72683b88386e66918277bdc7&camp=1789&creative=9325&node=541966
Ссылки и html тэги не поддерживаются


Комментарии: