This as far as I have been able to get it… Now it is an argument in periphery python it trips over. Still I think there is a long way from getting things running as smoothly as in raspian
from periphery import GPIO
gpio_in = GPIO("/dev/gpiochip0", 158, “out”)
Traceback (most recent call last):
File “/usr/local/lib/python3.9/dist-packages/periphery/gpio_cdev2.py”, lin
e 286, in _reopen
fcntl.ioctl(self._chip_fd, Cdev2GPIO._GPIO_V2_GET_LINE_IOCTL, line_reque
st)
OSError: [Errno 22] Invalid argument
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python3.9/dist-packages/periphery/gpio_cdev2.py”, lin
e 173, in init
self._open(path, line, direction, edge, bias, drive, inverted, label)
File “/usr/local/lib/python3.9/dist-packages/periphery/gpio_cdev2.py”, lin
e 224, in _open
self._reopen(direction, edge, bias, drive, inverted)
File “/usr/local/lib/python3.9/dist-packages/periphery/gpio_cdev2.py”, lin
e 288, in _reopen
raise GPIOError(e.errno, "Opening output line handle: " + e.strerror)
periphery.gpio.GPIOError: [Errno 22] Opening output line handle: Invalid arg
ument
I cant get the GPIO pins to work in my python script
from periphery import GPIO
Open GPIO /dev/gpiochip0 line 10 with input direction
gpio_in = GPIO("~/dev/gpiochip0", 38, “in”)
Open GPIO /dev/gpiochip0 line 12 with output direction
gpio_out = GPIO("~/dev/gpiochip0", 40, “out”)
value = gpio_in.read()
gpio_out.write(not value)
gpio_in.close()
gpio_out.close()
Does anyone got this board working or should I just dump it??