我使用环境传感器板与我的谷歌珊瑚开发板Mini。所有直接在板上的GPIO调用都会导致相同的错误,在这个例子中
from periphery import GPIO
gpio = GPIO(138, "low")
OSError: [Errno 22] Invalid argument
periphery.gpio.GPIOError: [Errno 22] Exporting GPIO: Invalid argument
细节:
Linux 4.19.125-mtk #1 SMP PREEMPT Thu Dec 10 02:36:13 UTC 2020 aarch64
Mendel GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
mendel@zippy-orange:~$ python3
Python 3.7.3 (default, Jan 22 2021, 20:04:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from periphery import GPIO
>>> gpio = GPIO(138, "low")
OSError: [Errno 22] Invalid argument
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/periphery/gpio.py", line 1007, in _open
f_export.write("{:d}n".format(line))
OSError: [Errno 22] Invalid argument
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.7/dist-packages/periphery/gpio.py", line 988, in __init__
self._open(line, direction)
File "/usr/local/lib/python3.7/dist-packages/periphery/gpio.py", line 1009, in _open
raise GPIOError(e.errno, "Exporting GPIO: " + e.strerror)
periphery.gpio.GPIOError: [Errno 22] Exporting GPIO: Invalid argument
>>>
我有同样的问题与谷歌enviro_demo.py:enviro = EnviroBoard()
同样的错误。
任何想法?所有已经从头开始安装/flash:)就在几分钟前。谢谢你。
最好的,弗兰克。
对于所有人,我从Coral支持那里得到了这个答案:
"[…我和这里的团队讨论了一下,发现开发板mini和环境板目前还不能一起工作。
我们不知道何时支持这个组合。
感谢珊瑚支援小组[…]">