项目作者: milas

项目描述 :
Python bindings for interacting with RF devices using GPIO modules
高级语言: Python
项目地址: git://github.com/milas/rfdevices.git
创建时间: 2017-02-20T17:23:10Z
项目社区:https://github.com/milas/rfdevices

开源协议:Other

下载


Introduction

High level RF library for interacting with common devices.

Requirements

  • Python 3
  • Native GPIO library (see Installation)

Installation

Clone this repo locally, then:

  1. pip install rfdevices

Native GPIO Library

For GPIO operations, this library uses adafruit/Adafruit_Python_GPIO
for compatibility with multiple SoC boards. As a result, you’ll need to ensure you manually install your platform’s
GPIO library.

If you have a Raspberry Pi:

  1. pip install RPi.GPIO

See RPi.GPIO on Sourceforge for more information.

If you have a Beaglebone Black:

  1. pip install Adafruit_BBIO

See adafruit/adafruit-beaglebone-io-python for more information.

If you have an Intel (e.g. Galileo, Edison) board, follow the instructions at
intel-iot-devkit/mraa.

Usage

After installing, the rfsend tool will be available in your PATH.

Here’s an example of sending a command to a UC7070T (Harbor Breeze) fan to toggle the light on/off:

  1. # GPIO pin 23 / fan dipswitch set to 1101
  2. rpi-rftx -g 23 -t uc7070t -b 111010000001

Credits

This was originally forked from milaq/rpi-rf.

Portions of the code are:
Copyright (c) 2016 Suat Özgür, Micha LaQua
Copyright (c) 2017 Milas Bowman