Coral Dev Board Mini存在环境传感器板GPIO问题

2024-10-02 16:23:46 发布

您现在位置:Python中文网/ 问答频道 /正文

我将环境传感器板与我的Google Coral Dev Board 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
>>>

我对Google enviro_demo.py也有同样的问题: enviro = EnviroBoard() 同样的错误

有什么想法吗?所有这些都是在几分钟前从零开始安装的。 多谢各位

最好的, 坦率的


Tags: theinpygpiolineexceptionargumentfile
1条回答
网友
1楼 · 发布于 2024-10-02 16:23:46

总之,我从Coral support得到了这个答案:

“[…]我在这里与团队进行了讨论,并了解到开发板mini和Enviro板目前无法协同工作

我们没有关于何时支持这种组合的时间表

感谢Coral支持团队[…]”

相关问题 更多 >