Schild has now 80 LEDs
This commit is contained in:
parent
078fa47c4c
commit
435a59df46
|
@ -6,8 +6,8 @@
|
|||
#include "NeoPatterns.h"
|
||||
|
||||
#define PIN D1
|
||||
#define SENSOR D3
|
||||
#define NUMPIXELS 144
|
||||
#define SENSOR D0
|
||||
#define NUMPIXELS 80
|
||||
|
||||
|
||||
|
||||
|
@ -152,14 +152,14 @@ 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();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue