From 435a59df4692b8694b047cc918b3e76fee60808a Mon Sep 17 00:00:00 2001 From: Juergen Jung Date: Fri, 3 Mar 2017 20:48:22 +0100 Subject: [PATCH] Schild has now 80 LEDs --- esp-wemos-schild/esp-wemos-schild.ino | 14 +++++++------- platformio.ini | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/esp-wemos-schild/esp-wemos-schild.ino b/esp-wemos-schild/esp-wemos-schild.ino index 3238542..19f73bc 100644 --- a/esp-wemos-schild/esp-wemos-schild.ino +++ b/esp-wemos-schild/esp-wemos-schild.ino @@ -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(); } diff --git a/platformio.ini b/platformio.ini index 77d00ab..f6d8d31 100644 --- a/platformio.ini +++ b/platformio.ini @@ -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