This commit is contained in:
br committed 2023-01-06 22:03:14 +01:00
1 parent a2b4caa6c0
commit 34442606fe
1 file changed
+11 -6
+11 -6
View File
@@ -3,7 +3,7 @@ import RPi.GPIO as GPIO
import time
#+----------+-Rev2-+------+--------+------+-------+
#| wiringPi | GPIO | Phys | Name | Mode | Value |
#| wiringPi | GPIO | Phys | Name | Mode | Value |python
#+----------+------+------+--------+------+-------+
#| 0 | 17 | 11 | GPIO 0 | IN | Low |32
#| 1 | 18 | 12 | GPIO 1 | IN | Low |15
@@ -40,14 +40,19 @@ print ('---------------------')
#17,18,27,22,23,24,25, 4, 2, 3, 8, 7,10, 9,11,14,15,28,29,30,31
GPIO_23=22
GPIO_17=16
GPIOTEST=27
GPIO_17=32
GPIO_18=15
GPIO_27=31
GPIO_23=22
GPIO_2=3
GPIO_3=5
GPIO.setmode(GPIO.BOARD)
#17,18,27,22,23,24,25, 4, 2, 3, 8, 7,10, 9,11,14,15,28,29,30,31
myLED=GPIOTEST
#while True:
for myLED in phy_led:
myLED=GPIO_18
while True:
#for myLED in valid_led:
print '. on . ',myLED
GPIO.setup(myLED, GPIO.OUT)
GPIO.output(myLED,True)