Hello, I am currently working on a project with the iMX93 EVK board. I am trying to control an interface by running a blinking LED example, but I'm having trouble figuring out how to use the RPi GPIO header.
I suspect that the RPi GPIO header is associated with 'gpiochip2'. I tried using GPIO line 0, assuming it was related, but the LED didn't respond. I also tried changing the line to 17 (the BCM number), but that didn't work either. I ruled out a hardware issue because the LED lights up when I connect it directly to 3.3V.
Could you please guide me on how to resolve this issue? Which documentation should I refer to for more information?
Below is the Python code I executed:
import gpiod
from gpiod.line import Direction, Value
import time
LINE = 17
with gpiod.request_lines(
    "/dev/gpiochip2",
    consumer="blink-example",
    config={
        LINE: gpiod.LineSettings(
            direction=Direction.OUTPUT, output_value=Value.ACTIVE
        )
    },
) as request:
    while True:
        request.set_value(LINE, Value.ACTIVE)
        time.sleep(1)
        request.set_value(LINE, Value.INACTIVE)
        time.sleep(1)
Solved! Go to Solution.