-
Fototrend
Amit érdemes tudni a Raspberry Pi-kről:
A legelső változat 2012-ben jelent meg. Pici, olcsó és nagyon alacsony fogyasztású, hobby-célú kártyagép. Felépítése ARM alapú, nem PC-architektúra, hanem kb. egy régi mobilhoz hasonló. Nagyon sok mindenre használható! A Linux-nak és a magas eladási mennyiségnek köszönhetően jelentős fejlesztőtáborral rendelkezik.
Új hozzászólás Aktív témák
-
petya220
senior tag
válasz
D@reeo #22791 üzenetére
Nem válasz akart ez lenni :c Bocsi
Üdv
Egy kis segítséget szeretnék kérni, szereztem egy 7 szegmensű led kijelzőt (vagy miez... ), és írtam is hozzá egy programot,de ezt nem tudom, valahogy lerövidíteni? xDD
Ez a kód pl visszaszámol, de ez rohadt hosszú számomra..import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(9,GPIO.OUT)
GPIO.setup(10,GPIO.OUT)
GPIO.setup(17,GPIO.OUT)
GPIO.setup(18,GPIO.OUT)
GPIO.setup(23,GPIO.OUT)
GPIO.setup(24,GPIO.OUT)
GPIO.setup(27,GPIO.OUT)
GPIO.output(23,GPIO.LOW)
GPIO.output(17,GPIO.LOW)
GPIO.output(27,GPIO.LOW)
GPIO.output(10,GPIO.HIGH)
GPIO.output(18,GPIO.LOW)
GPIO.output(24,GPIO.LOW)
GPIO.output(9,GPIO.LOW)
time.sleep(0.5)
GPIO.output(23,GPIO.LOW)
GPIO.output(17,GPIO.LOW)
GPIO.output(27,GPIO.LOW)
GPIO.output(10,GPIO.LOW)
GPIO.output(18,GPIO.LOW)
GPIO.output(24,GPIO.LOW)
GPIO.output(9,GPIO.LOW)
time.sleep(0.5)
GPIO.output(23,GPIO.LOW)
GPIO.output(17,GPIO.LOW)
GPIO.output(27,GPIO.LOW)
GPIO.output(10,GPIO.LOW)
GPIO.output(18,GPIO.LOW)
GPIO.output(24,GPIO.LOW)
GPIO.output(9,GPIO.LOW)
time.sleep(0.5)
GPIO.output(23,GPIO.LOW)
GPIO.output(17,GPIO.LOW)
GPIO.output(27,GPIO.HIGH)
GPIO.output(10,GPIO.HIGH)
GPIO.output(18,GPIO.HIGH)
GPIO.output(24,GPIO.LOW)
GPIO.output(9,GPIO.HIGH)
time.sleep(0.5)
GPIO.output(23,GPIO.HIGH)
GPIO.output(17,GPIO.LOW)
GPIO.output(27,GPIO.LOW)
GPIO.output(10,GPIO.LOW)
GPIO.output(18,GPIO.LOW)
GPIO.output(24,GPIO.LOW)
GPIO.output(9,GPIO.LOW)
time.sleep(0.5)
GPIO.output(23,GPIO.HIGH)
GPIO.output(17,GPIO.LOW)
GPIO.output(27,GPIO.LOW)
GPIO.output(10,GPIO.HIGH)
GPIO.output(18,GPIO.LOW)
GPIO.output(24,GPIO.LOW)
GPIO.output(9,GPIO.LOW)
time.sleep(0.5)
GPIO.output(23,GPIO.LOW)
GPIO.output(17,GPIO.LOW)
GPIO.output(27,GPIO.HIGH)
GPIO.output(10,GPIO.HIGH)
GPIO.output(18,GPIO.LOW)
GPIO.output(24,GPIO.HIGH)
GPIO.output(9,GPIO.LOW)
time.sleep(0.5)
GPIO.output(23,GPIO.LOW)
GPIO.output(17,GPIO.LOW)
GPIO.output(27,GPIO.LOW)
GPIO.output(10,GPIO.HIGH)
GPIO.output(18,GPIO.HIGH)
GPIO.output(24,GPIO.LOW)
GPIO.output(9,GPIO.LOW)
time.sleep(0.5)
GPIO.output(23,GPIO.LOW)
GPIO.output(17,GPIO.HIGH)
GPIO.output(27,GPIO.LOW)
GPIO.output(10,GPIO.LOW)
GPIO.output(18,GPIO.HIGH)
GPIO.output(24,GPIO.LOW)
GPIO.output(9,GPIO.LOW)
time.sleep(0.5)
GPIO.output(23,GPIO.LOW)
GPIO.output(17,GPIO.LOW)
GPIO.output(27,GPIO.HIGH)
GPIO.output(10,GPIO.HIGH)
GPIO.output(18,GPIO.HIGH)
GPIO.output(24,GPIO.HIGH)
GPIO.output(9,GPIO.HIGH)
time.sleep(0.5)
GPIO.output(23,GPIO.LOW)
GPIO.output(17,GPIO.LOW)
GPIO.output(27,GPIO.LOW)
GPIO.output(10,GPIO.LOW)
GPIO.output(18,GPIO.LOW)
GPIO.output(24,GPIO.LOW)
GPIO.output(9,GPIO.HIGH)Valami ötlet?
Új hozzászólás Aktív témák
- BESZÁMÍTÁS! Asus H370 i5 9600K 16GB DDR4 512B SSD RTX 2060 Super 8GB Chieftec HC-10B-OP Zalman 850W
- BESZÁMÍTÁS! Gigabyte B550M R7 5700X 32GB DDR4 1TB SSD RTX 4060 TI 16GB Gamemax Brufen C3 BG 650W
- BESZÁMÍTÁS! Gigabyte H170 i7 6700K 16GB DDR4 512GB SSD GTX 1080 8GB ZALMAN S2 TG A-Data 600W
- BESZÁMÍTÁS! MSI B760 WIFI i9 14900KF 32GB DDR5 1TB SSD RTX 3090 Trinity OC 24GB LIAN LI PC-O11D 750W
- BESZÁMÍTÁS! ASUS B760M i9 12900K 32GB DDR4 1TB SSD RTX 3080 10GB ZALMAN S2 TG A-Data 750W
- Apple iPhone 13 Mini 128GB,Dobozával,12 hónap garanciával
- Tablet felvásárlás!! Apple iPad, iPad Mini, iPad Air, iPad Pro
- Gyors, Precíz, Megbízható TELEFONSZERVIZ, amire számíthatsz! Akár 1 órán belül
- GYÖNYÖRŰ iPhone 12 64GB Black -1 ÉV GARANCIA - Kártyafüggetlen, MS2113, 100% Akkumulátor
- Telefon felvásárlás!! Honor 200 Lite, Honor 200, Honor 200 Pro, Honor 200 Smart
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest