覆盆子皮的高级GPIO。通过pwm、gpio中断、tcp套接字中断、命令行工具等扩展rpi.gpio

tingbot-RPIO的Python项目详细描述


rpio是覆盆子pi的高级gpio模块。

  • 通过DMA的脉宽调制(最高1us分辨率)
  • GPIO输入和输出(直接替换RPi.GPIO
  • GPIO中断(在输入GPIO上发生事件时回调)
  • TCP套接字中断(TCP套接字客户端发送数据时回调)
  • 命令行工具rpiorpio-curses
  • 文档齐全、速度快的源代码,CPU使用率最低
  • 开源(lgplv3+)

Visit pythonhosted.org/RPIO for the documentation.

安装

在树莓pi上安装/更新rpio的最简单方法是使用easy_installpip

$ sudo apt-get install python-setuptools
$ sudo easy_install -U RPIO

安装后,您可以使用import RPIO以及命令行工具rpiorpio-curses

Debian软件包可在metachris.github.com/rpio/download找到。

arch-linux pkgbuild可在aur.archlinux.org/packages/rpio上获得。

示例

您可以在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>

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java使用字符而不是字符串的意义   部分匹配长度字符串相似性的java正则表达式   java获取构造函数错误(错误:“(”或“[”)   java@Value注释无法正常工作SpringBoot   java hasKey在响应中没有看到字段   java JavaFX,没有JFXButtons和所有   在Log4j2中,是否可以根据键从记录器中筛选出某些键值对?   如何使用Java中Kafka的消息,从特定偏移量开始   java在单击后存储动态按钮的值   java Android编码:ViewRootImpl$CalledFromErrorThreadException。[Noob]   通过FileChooser保存pdf格式会提示在java中出现第二个对话框   用于空文件的java Spring集成文件标记   java我们应该如何编写get方法,以便私有字段不会超出其预期范围?   java Eclipse产品问题,Juno RequireHandle:org。日食e4。果心服务