覆盆子皮的高级GPIO。通过pwm、gpio中断、tcp套接字中断、命令行工具等扩展rpi.gpio
RPIO的Python项目详细描述
rpio是覆盆子pi的高级gpio模块。
- 通过DMA的脉宽调制(高达1微秒分辨率)
- GPIO输入和输出(直接替换RPi.GPIO)
- GPIO中断(在输入GPIO上发生事件时回调)
- TCP套接字中断(TCP套接字客户端发送数据时回调)
- 命令行工具rpio和rpio-curses
- 文档齐全、速度快的源代码,CPU使用率最低
- 开源(lgplv3+)
Visit pythonhosted.org/RPIO for the documentation.
安装
在树莓pi上安装/更新rpio的最简单方法是使用easy_install或pip:
$ sudo apt-get install python-setuptools $ sudo easy_install -U RPIO
安装后,您可以使用import RPIO以及命令行工具rpio和rpio-curses。
Debian软件包可在metachris.github.com/rpio/download找到。
示例
您可以在documentation和/examples/ source directory中找到许多示例。
反馈
请将反馈和想法发送到chris@linuxuser.at,和open an issue at Github 如果你遇到了虫子。
许可证
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details at <http://www.gnu.org/licenses/lgpl-3.0-standalone.html>
版权所有
Copyright (C) 2013 Chris Hager <chris@linuxuser.at>