在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:imxieyi/esp32-rgb-homebridge开源软件地址:https://github.com/imxieyi/esp32-rgb-homebridge开源编程语言:C++ 64.3%开源软件介绍:ESP32 RGB LED for homebridgeThis 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. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论