raspberry

This commit is contained in:
Lucas Faber authored and Lucas Vivohost committed 2026-09-14 09:20:47 +02:00
1 parent 84dfdf5210
commit be436085b3
55 files changed
+2195

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#import the GPIO and time package
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARD)
led_pin_board=16
led_pin_bcm="GPIO23"
GPIO.setup(led_pin_board, GPIO.OUT)
# loop through 50 times, on/off for 1 second
for i in range(50):
print("Flash")
GPIO.output(led_pin_board,True)
time.sleep(1)
GPIO.output(led_pin_board,False)
time.sleep(1)
GPIO.cleanup()