How to configure GPIO and toggle led on apalis imx 8 (torizoncore)using python

Hi @ritesh.tx Thanks for the reply. I tried following steps…

  1. Ran the command …
    docker run --rm -it --device /dev/gpiochip0 torizonextras/arm64v8-gpiod

  2. Ran commands you mentioned in the open container…
    sudo apt update
    sudo apt install python3-libgpiod

  3. created a file in nano editor led.py with following…
    import gpiod

chip=gpiod.Chip(‘gpiochip0’)
lines = chip.get_lines([ 12 ])
lines.request(consumer=‘gpio’, type=gpiod.LINE_REQ_DIR_OUT)
lines.set_values(1)

  1. on running python3 led.py… I am getting…
    lines.set_values(1)
    TypeError: Number of values must correspond with the number of lines

Any clues/pointers about this…

Thanks,
Shardul