Raspithek
2 years ago
3 changed files with 28 additions and 1 deletions
@ -0,0 +1,2 @@ |
|||
./__pycache__ |
|||
./network/__pycache__/* |
@ -0,0 +1,23 @@ |
|||
#! /usr/bin/python3 |
|||
|
|||
import RPi.GPIO as GPIO |
|||
from time import sleep |
|||
|
|||
__PIN__ = 18 |
|||
|
|||
GPIO.setwarnings(False) |
|||
GPIO.setmode(GPIO.BCM) |
|||
GPIO.setup(__PIN__,GPIO.OUT) |
|||
|
|||
while True: |
|||
|
|||
GPIO.output(__PIN__,GPIO.HIGH) |
|||
print('LED ein') |
|||
|
|||
sleep(0.5) |
|||
|
|||
GPIO.output(__PIN__,GPIO.LOW) |
|||
print('LED aus') |
|||
|
|||
|
|||
|
Loading…
Reference in new issue