lovenr 发表于 2019-12-18 00:36:20

不加 sudo 运行提示:
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: Permission denied: '/dev/mem'

liufirefly 发表于 2020-7-29 21:02:50

我顶

sdsajdka 发表于 2020-11-23 15:59:45

lovenr 发表于 2019-12-18 00:30
运行gpio_test.py无效~ 灯状态无任何反应~

我也是没反应请问您解决这个问题了吗

shuxiad 发表于 2020-12-14 17:57:36

nice
页: 1 2 [3]
查看完整版本: [fireflyP] GPIO使用