basic LED library inclusion

pull/46/head
cschwinne 2016-09-13 23:41:15 +02:00
rodzic 724b9c6ecb
commit 01ce8971a7
2 zmienionych plików z 6 dodań i 7 usunięć

Wyświetl plik

@ -9,4 +9,6 @@ implement button
implement LED Control (NeoPixelBus?) -- vip
implement HSB slider option
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

Wyświetl plik

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