Commit d576df9b1a8801c1cf75720a7dc1e61d6de1448b

Authored by mik
1 parent 289594cf76
Exists in master

bugfixes

Showing 3 changed files with 7 additions and 5 deletions Side-by-side Diff

... ... @@ -6,6 +6,7 @@
6 6 },
7 7 "mqtt": {
8 8 "host": "192.168.8.2",
  9 + "base_topic": "devices/",
9 10 "port": 1883
10 11 },
11 12 "ota": {
... ... @@ -24,7 +24,7 @@
24 24 lib_deps =
25 25 Hash
26 26 DHT sensor library
27   - FastLED
  27 + git+https://github.com/FastLED/FastLED/#master
28 28 #git+https://github.com/marvinroger/homie-esp8266.git#develop
29 29 git+https://github.com/marvinroger/homie-esp8266.git#v2.0.0-beta.1
30 30 git+https://github.com/bblanchon/ArduinoJson.git#v5.6.7
1 1 #include <Homie.h>
  2 +
  3 +#define FASTLED_ESP8266_RAW_PIN_ORDER
2 4 #include "FastLED.h"
3 5  
4   -
5 6 //#define DHTPIN D7
6 7 // #define DHTTYPE DHT21
7 8  
... ... @@ -11,7 +12,7 @@
11 12 #endif
12 13  
13 14 const int NUM_LEDS = 10;
14   -#define DATA_PIN D6
  15 +#define DATA_PIN D5
15 16 #define CLOCK_PIN D5
16 17  
17 18 const int TEMPERATURE_INTERVAL = 30;
18 19  
... ... @@ -125,10 +126,10 @@
125 126 temperatureNode.advertise("humidity");
126 127 #endif
127 128  
128   - //FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, NUM_LEDS);
  129 + FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, NUM_LEDS);
129 130 //FastLED.addLeds<TM1809, DATA_PIN, RGB>(leds, NUM_LEDS);
130 131 //FastLED.addLeds<DOTSTAR, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
131   - FastLED.addLeds<WS2801, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
  132 + //FastLED.addLeds<WS2801, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
132 133 for (int i = 0; i < NUM_LEDS; i++) {
133 134 leds[i] = CRGB::Red;
134 135 }