• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

smartechru/homebridge-button: Raspberry Pi GPIO plugin for Homebridge: https://g ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

smartechru/homebridge-button

开源软件地址:

https://github.com/smartechru/homebridge-button

开源编程语言:

JavaScript 100.0%

开源软件介绍:

Homebridge Button

Supports triggering General Purpose Input Output (GPIO) pins on the Raspberry Pi. Useful to control relay from button with Siri.

It use rpio library to achieve that.

Requirements

Installation

  1. Install Homebridge using sudo npm install -g homebridge
  2. Install this plugin using: sudo npm install -g --unsafe-perm homebridge-button
  3. Update your configuration file - see config-sample.json in this repo

Configuration

Example config.json

{
  "accessories": [
    {
      "accessory": "Button",
      "name": "ButtonTest",
      "pin": 12,
      "out": 11
    }
  ]
}

Pin Configuration

This couldn't have been more confusing. Raspberry Pi's physical pins are not laid out in any particular logical order. Most of them are given the names of the pins of the Broadcom chip it uses (BCM2835). There isn't even a logical relationship between the physical layout of the Raspberry Pi pin header and the Broadcom chip's pinout. The OS recognizes the names of the Broadcom chip and has nothing to do with the physical pin layout on the Pi. To add to the fun, the specs for the Broadcom chip are nearly impossible to get!

P1 - 3.3v 1 2 5v
I2C SDA 3 4 --
I2C SCL 5 6 Ground
GPIO 7 8 TX
-- 9 10 RX
GPIO 11 12 GPIO
GPIO 13 14 --
GPIO 15 16 GPIO
-- 17 18 GPIO
SPI MOSI 19 20 --
SPI MISO 21 22 GPIO
SPI SCLK 23 24 SPI CE0
-- 25 26 SPI CE1
Model A+ and Model B+ additional pins
ID_SD 27 28 ID_SC
GPIO 29 30 --
GPIO 31 32 GPIO
GPIO 33 34 --
GPIO 35 36 GPIO
GPIO 37 38 GPIO
-- 39 40 GPIO



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
artemnovichkov/Carting: 发布时间:2022-06-17
下一篇:
MortJC/homebridge-platform-isolarcloud发布时间:2022-06-17
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap