|
发表于 2019-12-18 00:36:20
只看该作者
21#
- 不加 sudo 运行提示:
- [code]Traceback (most recent call last):
- File "demo/gpio_test.py", line 14, in <module>
- Gpio.init()
- File "build/bdist.linux-armv7l/egg/fireflyP/gpio.py", line 231, in init
- File "build/bdist.linux-armv7l/egg/fireflyP/gpio.py", line 217, in _set_mapreg
- File "build/bdist.linux-armv7l/egg/fireflyP/lib/devmem.py", line 131, in __init__
- File "build/bdist.linux-armv7l/egg/fireflyP/lib/devmem.py", line 53, in __init__
- OSError: [Errno 13] Permission denied: '/dev/mem'
复制代码 [/code] |
|