Warning: in_array() expects parameter 2 to be array, null given in /home/geekv/public_html/wp-content/plugins/jamel-limit-single-product/index.php on line 26

Warning: in_array() expects parameter 2 to be array, null given in /home/geekv/public_html/wp-content/themes/geeksvalley/functions.php on line 2075
راسبيري باي -الدرس الرابع- اعداد GPIO | مكتبة Rpi.GPIO للبايثون | GeeksValley

Warning: Use of undefined constant reference_posttype - assumed 'reference_posttype' (this will throw an Error in a future version of PHP) in /home/geekv/public_html/wp-content/plugins/wp-related-items/wri-widget.php on line 19

راسبيري باي -الدرس الرابع- اعداد GPIO

مبتدئ

image_pdf

مكتبة Rpi.GPIO للبايثون

لبرمجة منافذ GPIO بالبايثون نحتاج إلى مكتبة Rpi.GPIO لتسهل علينا التحكم بالـ GPIO ، عادةً مكتبة Rpi.GPIO تكون مثبته مسبقًا مع نظام Raspbian ولكن في حال عدم توفرها يمكنك تثبيتها يدويا من خلال ادخالك للأوامر التالية في LXTerminal

GPIO3

قم بتحديث المستودعات للحصول على آخر إصدار

sudo apt-get update

GPIO4

قم بتثبيت python-dev

sudo apt-get install python-dev

قم بتثبيت مكتبة Rpi.GPIO

sudo apt-get install python-rpi.gpio
X
Product added to the cart