13 lines
234 B
Python
13 lines
234 B
Python
import RPi.GPIO as GPIO
|
|
import time
|
|
|
|
for i in range(100000):
|
|
GPIO.setmode(GPIO.BCM)
|
|
GPIO.setup(17, GPIO.OUT)
|
|
GPIO.output(17, GPIO.HIGH)
|
|
time.sleep(1)
|
|
GPIO.output(17, GPIO.LOW)
|
|
time.sleep(1)
|
|
GPIO.cleanup()
|
|
|