📌  相关文章
📜  raise RuntimeError('访问 GPIO 时出错.') RuntimeError:访问 GPIO 时出错. - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:38.708000             🧑  作者: Mango

代码示例1
The RPi.GPIO Python module is bundled with Raspbian.

Currently RPi.GPIO has to be run with root priviliges because it accesses /dev/mem. You need root priviliges to access /dev/mem.

So you have to run RPi.GPIO with sudo or similar.