I have version .5 of this library working on an rpi 4 but I'm doing some testing on an rpi 2 zero w and after downloading v1.0 I'm getting this error with the new call gpiod instead of RpiGPIO (using gpio numbers not header numbers to connect pins):
Traceback (most recent call last):
File "/home/weather/pmsTests/pms5003-test.py", line 25, in
pms5003 = PMS5003(
File "/root/.local/lib/python3.9/site-packages/pms5003/init.py", line 106, in init
self._pin_enable = gpiodevice.get_pin(pin_enable, "PMS5003_en", OUTH)
File "/root/.local/lib/python3.9/site-packages/gpiodevice/init.py", line 138, in get_pin
chip = find_chip_by_pins(pin)
File "/root/.local/lib/python3.9/site-packages/gpiodevice/errors.py", line 45, in wrapper
errors.append(next(i))
File "/root/.local/lib/python3.9/site-packages/gpiodevice/init.py", line 108, in find_chip_by_pins
for pin_id in pins:
TypeError: 'int' object is not iterable
I have version .5 of this library working on an rpi 4 but I'm doing some testing on an rpi 2 zero w and after downloading v1.0 I'm getting this error with the new call gpiod instead of RpiGPIO (using gpio numbers not header numbers to connect pins):
Traceback (most recent call last):
File "/home/weather/pmsTests/pms5003-test.py", line 25, in
pms5003 = PMS5003(
File "/root/.local/lib/python3.9/site-packages/pms5003/init.py", line 106, in init
self._pin_enable = gpiodevice.get_pin(pin_enable, "PMS5003_en", OUTH)
File "/root/.local/lib/python3.9/site-packages/gpiodevice/init.py", line 138, in get_pin
chip = find_chip_by_pins(pin)
File "/root/.local/lib/python3.9/site-packages/gpiodevice/errors.py", line 45, in wrapper
errors.append(next(i))
File "/root/.local/lib/python3.9/site-packages/gpiodevice/init.py", line 108, in find_chip_by_pins
for pin_id in pins:
TypeError: 'int' object is not iterable