1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) GPIO.setup(38,GPIO.OUT) GPIO.setup(40,GPIO.OUT) while (1): GPIO.output(38,True) GPIO.output(40,False) time.sleep(0.2) GPIO.output(38,False) GPIO.output(40,True) time.sleep(0.2) GPIO.cleanup()
Hiç yorum yok:
Yorum Gönder