Hirdetés
- Raspberry Pi
- NVIDIA GeForce RTX 5070 / 5070 Ti (GB205 / 203)
- BIOS topic
- Shield TV-t csinált a Shieldből az NVIDIA
- A Windows 11 nem akarja ránk erőltetni az AI applikációkat – vagy mégis?
- Home server / házi szerver építése
- Vezetékes FEJhallgatók
- Azonnali VGA-s kérdések órája
- TCL LCD és LED TV-k
- Kompakt vízhűtés
-
PROHARDVER!
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
- One otthoni szolgáltatások (TV, internet, telefon)
- Sorozatok
- Bittorrent topik
- Raspberry Pi
- NVIDIA GeForce RTX 5070 / 5070 Ti (GB205 / 203)
- BIOS topic
- OFF TOPIC 44 - Te mondd, hogy offtopic, a te hangod mélyebb!
- Apple iPhone 17 Pro Max – fennsík
- Milyen routert?
- Shield TV-t csinált a Shieldből az NVIDIA
- További aktív témák...
- Eladó konfig! I9-14900K 2TB SSD 32GB DDR5 RTX5070 12GB!
- !AKCIÓ! GAMER PC Intel Core i9-10900X/ASUS ROG Strix X299-E Gaming/NVIDIA GeForce RTX 3080/32 GB RAM
- Eladó Konfig Ryzen 5 7600 16GB DDR5 1TB SSD RX6800 16GB!
- BRUTÁL AI / VIDEO / WORKSTATION PC RTX 3090 24GB RYZEN 9 7900x 32GB DDR5
- Eladó Konfig I5 10400F 16GB DDR4 512GB SSD RX5700XT 8GB!
- Xiaomi Redmi Note 14 256GB, Kártyafüggetlen, 1 Év Garanciával
- Honor 200 Lite / 8/256GB / Kártyafüggetlen / 12HÓ Garancia
- RAKTÁRKISÖPRÉS! Eladó szerverek!
- Újszerű Apple MacBook Air M1 13.3 - 8GB/256GB - Asztroszürke - 150 Ciklus - 92% akku - 1 év gari -
- í kilenc! AKCIÓS PRECÍZIÓS KÉSZÜLÉK! 7670 i9-12950HX 32GB RAM 1TB SSD Nvidia RTX A3000 12GB 1 év gar
Állásajánlatok
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest
Cég: Laptopszaki Kft.
Város: Budapest



wassermann

