basic LED library inclusion

This commit is contained in:
cschwinne 2016-09-13 23:41:15 +02:00
parent 724b9c6ecb
commit 01ce8971a7
2 changed files with 6 additions and 7 deletions

View File

@ -9,4 +9,6 @@ implement button
implement LED Control (NeoPixelBus?) -- vip implement LED Control (NeoPixelBus?) -- vip
implement HSB slider option implement HSB slider option
implement default color on boot implement default color on boot
change color submit from get to post, rewrite with args, requires no buffer
change color submit from rgb to hex

View File

@ -7,7 +7,7 @@
#include <NeoPixelBus.h> #include <NeoPixelBus.h>
#include <FS.h> #include <FS.h>
//NeoPixelBus strip = NeoPixelBus(pixelCount, 8, NEO_GRB | NEO_KHZ800); NeoPixelBus<NeoGrbFeature, Neo800KbpsMethod> strip(16);
String clientssid = "Your_Network_Here"; String clientssid = "Your_Network_Here";
String clientpass = "Dummy_Pass"; String clientpass = "Dummy_Pass";
@ -21,8 +21,6 @@ IPAddress staticip(0, 0, 0, 0);
IPAddress staticgateway(0, 0, 0, 0); IPAddress staticgateway(0, 0, 0, 0);
IPAddress staticsubnet(255, 255, 255, 0); IPAddress staticsubnet(255, 255, 255, 0);
//boolean wasConnected = false;
byte col[3]; byte col[3];
byte bri; byte bri;
byte hue, sat; byte hue, sat;
@ -500,11 +498,10 @@ void handleFileList() {
void setLeds() { void setLeds() {
/*for (int i=0; i<pixelCount; i++) { for (int i=0; i<16; i++) {
strip.SetPixelColor(i, black); strip.SetPixelColor(i, RgbColor(col[0], col[1], col[2]));
} }
strip.SetPixelColor(pixel, color); strip.Show();
strip.Show();*/
} }
void setup() { void setup() {