Warning: Undefined array key "enable_lazyload_videos" in /var/www/murat.ws/public_html/wp-content/plugins/reco-functions/reco-functions.php on line 129
Raspberry Pi ile tek kanal role kontrolu – Murat Uğur Eminoğlu
Warning: Undefined array key "custom_scripts" in /var/www/murat.ws/public_html/wp-content/plugins/reco-functions/custom-styles.php on line 48

Press enter to see results or esc to cancel.

Raspberry Pi ile tek kanal role kontrolu

Merhaba, raspberry pi ile tek kanal role kontrolu icin asagidaki kodu kullanabilirsiniz. Kodu durdurana kadar role aktiftir.

import RPi.GPIO as GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
ROL = 14
GPIO.setup(ROL, GPIO.OUT)
try:
    while (True):
        GPIO.output(ROL, GPIO.LOW)
except KeyboardInterrupt:
    GPIO.output(ROL,GPIO.HIGH)
    GPIO.cleanup()

Warning: Undefined array key "custom_scripts_footer" in /var/www/murat.ws/public_html/wp-content/plugins/reco-functions/custom-styles.php on line 58