nihonium 3 years ago
parent 70dcc87c88
commit 0d4efc19d9

@ -0,0 +1,17 @@
#!/bin/python3
import RPi.GPIO as GPIO
from time import sleep
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(14, GPIO.OUT)
GPIO.output(14, 1)
sleep(2)
GPIO.output(14, 0)
sleep(2)
GPIO.output(14, 1)
sleep(2)
GPIO.output(14, 0)

@ -0,0 +1,13 @@
#!/bin/python3
import RPi.GPIO as GPIO
from time import sleep
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(14, GPIO.OUT)
GPIO.setup(15, GPIO.IN)
GPIO.output(14, GPIO.input(15))

@ -0,0 +1,19 @@
#!/bin/python3
import RPi.GPIO as GPIO
import time
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
leds = [21, 20, 16, 12, 7, 8, 25, 24]
aux = [22, 23, 27, 18, 15, 14, 3, 2]
GPIO.setup(leds, GPIO.OUT)
GPIO.setup(aux, GPIO.IN)
GPIO.output(leds, 0)
for i in range(len(leds)):
GPIO.output(leds[i], GPIO.input(aux[i]))

@ -2,3 +2,6 @@
255 3.241 255 3.241
127 1.619 127 1.619
64 0.819 64 0.819
32 0.415
5 0.076
0 0.0125