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

manfredipist/homebridge-gpio-rgb-ledstrip: A revamp of my previous release now b ...

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

开源软件名称:

manfredipist/homebridge-gpio-rgb-ledstrip

开源软件地址:

https://github.com/manfredipist/homebridge-gpio-rgb-ledstrip

开源编程语言:

JavaScript 100.0%

开源软件介绍:

homebridge-gpio-rgb-ledstrip

verified-by-homebridge npm version npm Donate

RPi GPIO based LED Strip plugin for Homebridge

Due to all the changes and updated that have occured in Homebridge since the original release of this plugin, i decided to replace its core to extend its usability and compatibility. This plugin now relies on pi-blaster.js which you need to install beforehand.

Originally inspired by GiniaE/homebridge-gpio-ledstrip

Installation

  1. Install pi-blaster.
  2. Update pi-blaster DAEMON_OPTS configuration under the path /etc/default/pi-blaster to enable your specific pin layout (instructions).
  3. Install [homebridge-gpio-rgb-ledstrip] directly from Homebridge Plugin Page or by running sudo npm install -g homebridge-gpio-rgb-ledstrip.
  4. Update your configuration file. See sample config.json snippet below. Remember to use BCM GPIO layout.

To identify the correct pin configuration, have a look at the following layout

pi-blaster pinout

P.S: if pi-blaster seems not to work (e.g running the command 'echo "$PIN=1" > /dev/pi-blaster' doesn't yield the desired output), try restarting manually the service with root privileges

Configuration

Configuration sample:

   "accessories": [
     {
       "accessory": "SmartLedStrip",
       "name": "Bedroom LedStrip",
       "rPin": 22,
       "gPin": 27,
       "bPin": 17
     }
   ]

Fields:

  • "accessory": Must always be "SmartLedStrip" (required)
  • "name": Can be anything (required)
  • "rPin": GPIO pin that is used to set red value (required)
  • "gPin": GPIO pin that is used to set green value (required)
  • "bPin": GPIO pin that is used to set blue value (required)



鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
zubieta/homebrew-core发布时间:2022-06-17
下一篇:
ksonnet/homebrew-tap: Homebrew tap for installing ksonnet software发布时间: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