Giter VIP home page Giter VIP logo

pi_gpio's Introduction

pi_gpio 控制器使用说明

##概述

pi_gpio 使用 pi_piper控制pi的GPIO输入输出和高低电压状态,控制部分参考了python编写的 webiopi

##使用说名

1.下载

首先下载控制程序 'git clone [email protected]:dddd1919/pi_gpio.git'

2.初始化

  1. 安装ruby.本程序使用的是ruby 1.9.3, 其他版本可能不支持 pi_piper 这个gem.
  2. 安装 bundle工具,使用命令 bundle install安装好所需gem

3.使用

  • 运行服务,在程序根目录下执行命令 thin start. 由于pi上的权限问题(也可能是别的问题)局域网的其他ip可能无法访问,最好还是用 sudo thin start
  • 浏览器访问地址 localhost:3000 or 'RaspberryPi_ip:3000'

GPIO图解 pin ###目前完成的功能:

  • 针脚输出状态下的高低电平转换
  • 重置所有针脚状态(到输出低电平)
  • 刷新当前针脚状态
  • 单独针脚输入输出状态切换控制
  • 针脚输入状态下的实时监视

pi_gpio's People

Contributors

dddd1919 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.