Schild has now 80 LEDs

This commit is contained in:
Juergen Jung 2017-03-03 20:48:22 +01:00
parent 078fa47c4c
commit 435a59df46
2 changed files with 9 additions and 9 deletions

View File

@ -6,8 +6,8 @@
#include "NeoPatterns.h" #include "NeoPatterns.h"
#define PIN D1 #define PIN D1
#define SENSOR D3 #define SENSOR D0
#define NUMPIXELS 144 #define NUMPIXELS 80
@ -152,14 +152,14 @@ void setup() {
ArduinoOTA.setHostname(Homie.getConfiguration().deviceId); ArduinoOTA.setHostname(Homie.getConfiguration().deviceId);
ArduinoOTA.setPassword((const char *)"ctdo2342"); ArduinoOTA.setPassword((const char *)"ctdo2342");
ArduinoOTA.onStart([]() { ArduinoOTA.onStart([]() {
pixels.clear(); pixels.clear();
}); });
ArduinoOTA.onEnd([]() { ArduinoOTA.onEnd([]() {
pixels.clear(); pixels.clear();
}); });
ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) { ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
pixels.setPixelColor(progress / (total / NUMPIXELS), pixels.Color(100, 0, 0)); pixels.setPixelColor(progress / (total / NUMPIXELS), pixels.Color(100, 0, 0));
pixels.show(); pixels.show();
}); });
ArduinoOTA.begin(); ArduinoOTA.begin();
} }

View File

@ -16,8 +16,8 @@ framework=arduino
;upload_port = /dev/tty.wchusbserial410 ;upload_port = /dev/tty.wchusbserial410
;upload_speed = 921600 ;upload_speed = 921600
;upload_port = 5ccf7f1db369.local upload_port = 5ccf7f1db369.local
upload_port = schild.local #upload_port = schild.local
upload_flags = --auth=ctdo2342 upload_flags = --auth=ctdo2342