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

RPIO的Python项目详细描述


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

  • 通过DMA的脉宽调制(高达1微秒分辨率)
  • 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找到。

示例

您可以在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第三方库


热门话题
无法在Netbeans 8.2 JDK8u231中创建java Maven项目(Web应用程序)   java如何以设定的时间间隔生成随机数?   java从socket和inputStream的慢速读取   spring SCORM:Java中基于Web的SCORM播放器   Java将函数传递给方法   java绑定通用服务及其实现和子类型   java如何在运行时从选择列表框中动态选择选项?爪哇硒   java Selenium WebDriver什么是“Selenium客户端和WebDriver语言绑定”   elasticsearch需要elasticsearch高级Java客户端更新ByQueryRequest API帮助   JAVA哈希表查找最大值   WSDL操作中的java soapAction属性为空   java访问封闭类或父类方法的一般方法   eclipse在java中运行带有SeleneTestCase的ANT。lang.NoClassDefFoundError   java Hazelcast不会在节点启动时填充ReplicatedMap   如何在Java中从excel中读取特定行?   html JAVA将本地时间(GMT+8)转换为UTC时间   java将自定义端点添加到Spring数据REST存储库中,并以大摇大摆的方式显示   java计算未来位置