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"
#define PIN D1
#define SENSOR D3
#define NUMPIXELS 144
#define SENSOR D0
#define NUMPIXELS 80
@ -152,15 +152,15 @@ void setup() {
ArduinoOTA.setHostname(Homie.getConfiguration().deviceId);
ArduinoOTA.setPassword((const char *)"ctdo2342");
ArduinoOTA.onStart([]() {
pixels.clear();
pixels.clear();
});
ArduinoOTA.onEnd([]() {
pixels.clear();
pixels.clear();
});
ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
pixels.setPixelColor(progress / (total / NUMPIXELS), pixels.Color(100, 0, 0));
pixels.show();
});
pixels.setPixelColor(progress / (total / NUMPIXELS), pixels.Color(100, 0, 0));
pixels.show();
});
ArduinoOTA.begin();
}

View File

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