GPIO number 154 156 157 … and more.
These were work several days ago. I have a simple script to enable the LED:
from periphery import GPIO
import time
RED_PIN = 154
AMBER_PIN = 156
GREEN_PIN = 157
# Open GPIO /dev/gpiochip0 line 10 with input direction
led_red = GPIO(RED_PIN, "out")
# Open GPIO /dev/gpiochip0 line 12 with output direction
led_amber = GPIO(AMBER_PIN, "out")
led_green = GPIO(GREEN_PIN, "out")
while True:
led_red.write(True)
time.sleep(1)
led_red.write(False)
led_amber.write(True)
time.sleep(1)
led_amber.write(False)
led_green.write(True)
time.sleep(1)
led_green.write(False)
Same code, I have try different OS , like Debian and Ubuntu.
My gpioinfo output doesn’t show any PinName, just like this:
gpiochip0 - 32 lines:
line 0: unnamed unused input active-high
line 1: unnamed unused input active-high
line 2: unnamed unused input active-high
line 3: unnamed unused input active-high
line 4: unnamed "host-wakeup" input active-high [used]
line 5: unnamed unused input active-high
line 6: unnamed unused input active-high
line 7: unnamed "cd" input active-low [used]
line 8: unnamed unused input active-high
line 9: unnamed "shutdown" output active-high [used]
line 10: unnamed "reset" output active-low [used]
line 11: unnamed unused input active-high
line 12: unnamed unused input active-high
line 13: unnamed unused input active-high
line 14: unnamed unused input active-high
line 15: unnamed unused input active-high
line 16: unnamed unused input active-high
line 17: unnamed unused input active-high
line 18: unnamed unused input active-high
line 19: unnamed unused input active-high
line 20: unnamed unused input active-high
line 21: unnamed unused input active-high
line 22: unnamed unused input active-high
line 23: unnamed unused input active-high
line 24: unnamed unused input active-high
line 25: unnamed unused input active-high
line 26: unnamed unused input active-high
line 27: unnamed unused input active-high
line 28: unnamed unused input active-high
line 29: unnamed unused input active-high
line 30: unnamed unused input active-high
line 31: unnamed unused input active-high
I am start wondering does my rock pi 4 plus broken.