Hi @ritesh.tx Thanks for the reply. I tried following steps…
-
Ran the command …
docker run --rm -it --device /dev/gpiochip0 torizonextras/arm64v8-gpiod -
Ran commands you mentioned in the open container…
sudo apt update
sudo apt install python3-libgpiod -
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)
- 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