05 december 2014
Raspberry Pi
Dioda 1cm RGB (dx) vse v enem ohišju
#!/usr/bin/env python from time
import sleep
import os import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(14, GPIO.OUT) GPIO.setup(15, GPIO.OUT) GPIO.setup(18, GPIO.OUT) print "Start" GPIO.output(14,GPIO.LOW) GPIO.output(15,GPIO.HIGH) GPIO.output(18,GPIO.HIGH) while True: print "Zanka" GPIO.output(14,GPIO.LOW) GPIO.output(15,GPIO.HIGH) GPIO.output(18,GPIO.HIGH) sleep(0.5); GPIO.output(14,GPIO.HIGH) GPIO.output(15,GPIO.LOW) GPIO.output(18,GPIO.HIGH) sleep(0.5); GPIO.output(14,GPIO.HIGH) GPIO.output(15,GPIO.HIGH) GPIO.output(18,GPIO.LOW) sleep(0.5);
Naročite se na:
Objavi komentarje (Atom)
Rpy upgrade
Meritev ultrasonic, napetost, temperatura, prisotnost solar.
Ni komentarjev:
Objavite komentar