Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from socket import *
- import time
- import RPi.GPIO as GPIO ## Import GPIO Library
- import time ## Import 'time' library. Allows us to use 'sleep'
- ## Ustalam zmienne ktore przechowuja numer portu gpio
- gpio1 = 12
- ## ustawiam wszystkie porty gpio jako wyjscia
- GPIO.setmode(GPIO.BOARD) ## Bedziemy uzywac numeracji pinow
- GPIO.setup(gpio1, GPIO.OUT) ## GPIO 1
- ## usuwam wszystkie przypisania portow
- GPIO.cleanup()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement