Files
mciot-lab/rpi.py
T
2026-05-21 10:56:35 +05:30

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()