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

imxieyi/esp32-rgb-homebridge: A rgb led project for homebridge

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

开源软件名称:

imxieyi/esp32-rgb-homebridge

开源软件地址:

https://github.com/imxieyi/esp32-rgb-homebridge

开源编程语言:

C++ 64.3%

开源软件介绍:

ESP32 RGB LED for homebridge

This is a project made for homebridge-better-http-rgb on HomeBridge.

HTTP server implemented from lwip-allnetworks.

Sample HomeBridge config:

{
    "bridge": {
        "name": "Homebridge",
        "username": "B8:27:EB:F9:51:49",
        "port": 51826,
        "pin": "031-45-154"
    },

    "description": "Homebridge",

    "accessories": [
    {
        "accessory": "HTTP-RGB",
        "name": "RGB Led on ESP32",

        "switch": {
            "status": "http://192.168.1.115/cmd/status/",
            "powerOn": "http://192.168.1.115/cmd/on/",
            "powerOff": "http://192.168.1.115/cmd/off/"
        },

        "brightness": {
            "status": "http://192.168.1.115/cmd/brightness/",
            "url": "http://192.168.1.115/cmd/brightness:%s/"
        },

        "color": {
            "status": "http://192.168.1.115/cmd/color/",
            "url": "http://192.168.1.115/cmd/color:%s/",
            "brightness": true
        }
    }],

    "platforms": []
}

NOTICE0: Be sure to include "COMPONENT_LDFLAGS += -lstdc++" in Makefile in order to compile.

NOTICE1: Although I'm using C++ class, it doesn't mean that you can control multiple RGB LED simultaneously by creating multiple objects.

NOTICE2: I included support for ledc_fade function in ESP-IDF, but I strongly recommend not using it because it will jam the server thread.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
macoshita/homebrew-custom发布时间:2022-06-17
下一篇:
rogual/homebrew-neovim-dot-app: Homebrew repo for Neovim.app发布时间: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