Commit d576df9b authored by mik's avatar mik

bugfixes

parent 289594cf
......@@ -6,6 +6,7 @@
},
"mqtt": {
"host": "192.168.8.2",
"base_topic": "devices/",
"port": 1883
},
"ota": {
......
......@@ -24,7 +24,7 @@ board = nodemcuv2
lib_deps =
Hash
DHT sensor library
FastLED
git+https://github.com/FastLED/FastLED/#master
#git+https://github.com/marvinroger/homie-esp8266.git#develop
git+https://github.com/marvinroger/homie-esp8266.git#v2.0.0-beta.1
git+https://github.com/bblanchon/ArduinoJson.git#v5.6.7
......
#include <Homie.h>
#include "FastLED.h"
#define FASTLED_ESP8266_RAW_PIN_ORDER
#include "FastLED.h"
//#define DHTPIN D7
// #define DHTTYPE DHT21
......@@ -11,7 +12,7 @@ DHT dht (DHTPIN, DHTTYPE);
#endif
const int NUM_LEDS = 10;
#define DATA_PIN D6
#define DATA_PIN D5
#define CLOCK_PIN D5
const int TEMPERATURE_INTERVAL = 30;
......@@ -125,10 +126,10 @@ void setup() {
temperatureNode.advertise("humidity");
#endif
//FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, NUM_LEDS);
FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, NUM_LEDS);
//FastLED.addLeds<TM1809, DATA_PIN, RGB>(leds, NUM_LEDS);
//FastLED.addLeds<DOTSTAR, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
FastLED.addLeds<WS2801, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
//FastLED.addLeds<WS2801, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = CRGB::Red;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment