forked from corbanmailloux/esp-mqtt-rgb-led
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finally add support for RGBW lights, per corbanmailloux#7.
- Loading branch information
1 parent
72d40a2
commit 94d1f74
Showing
4 changed files
with
511 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* This is a sample configuration file for the "mqtt_esp8266_rgbw" light. | ||
* | ||
* Change the settings below and save the file as "config.h" | ||
* You can then upload the code using the Arduino IDE. | ||
*/ | ||
|
||
// Pins | ||
#define CONFIG_PIN_RED 0 | ||
#define CONFIG_PIN_GREEN 2 | ||
#define CONFIG_PIN_BLUE 3 | ||
#define CONFIG_PIN_WHITE 4 | ||
|
||
// WiFi | ||
#define CONFIG_WIFI_SSID "{WIFI-SSID}" | ||
#define CONFIG_WIFI_PASS "{WIFI-PASSWORD}" | ||
|
||
// MQTT | ||
#define CONFIG_MQTT_HOST "{MQTT-SERVER}" | ||
#define CONFIG_MQTT_USER "{MQTT-USERNAME}" | ||
#define CONFIG_MQTT_PASS "{MQTT-PASSWORD}" | ||
|
||
#define CONFIG_MQTT_CLIENT_ID "ESPRGBWLED" // Must be unique on the MQTT network | ||
|
||
// MQTT Topics | ||
#define CONFIG_MQTT_TOPIC_STATE "home/rgbw1" | ||
#define CONFIG_MQTT_TOPIC_SET "home/rgbw1/set" | ||
|
||
#define CONFIG_MQTT_PAYLOAD_ON "ON" | ||
#define CONFIG_MQTT_PAYLOAD_OFF "OFF" |
Oops, something went wrong.