From 9025d0ed10d48e48153d98b8c5d03d3a50ff2008 Mon Sep 17 00:00:00 2001 From: Jason Coon Date: Tue, 5 Sep 2017 07:59:24 -0500 Subject: [PATCH] Updated for 8x8x8 tinytim cube. --- TwinkleFOX.h | 2 +- data/css/simple.css | 14 ++++++-- data/index.htm | 4 +-- data/js/app.js | 2 +- data/js/simple.js | 68 ++++++++++++++++++++++++----------- data/simple.htm | 28 +++++++++++++-- esp8266-fastled-webserver.ino | 50 +++++++++++++------------- 7 files changed, 114 insertions(+), 54 deletions(-) diff --git a/TwinkleFOX.h b/TwinkleFOX.h index f27b563..e784a88 100644 --- a/TwinkleFOX.h +++ b/TwinkleFOX.h @@ -194,7 +194,7 @@ void drawTwinkles() uint8_t backgroundBrightness = bg.getAverageLight(); - for(uint8_t i = 0; i < NUM_LEDS; i++) { + for(uint16_t i = 0; i < NUM_LEDS; i++) { CRGB& pixel = leds[i]; PRNG16 = (uint16_t)(PRNG16 * 2053) + 1384; // next 'random' number diff --git a/data/css/simple.css b/data/css/simple.css index 4c6be01..04b496e 100644 --- a/data/css/simple.css +++ b/data/css/simple.css @@ -2,10 +2,20 @@ padding-bottom: 70px; }*/ +.grid-item-color-button { + border: 0px; + width: 7.69%; + height: 64px; + margin: 0px; + padding: 0px; +} + .grid-item-color { - width: 4%; + border: none; + width: 3.33%; height: 32px; - cursor: pointer; + margin: 0px; + padding: 0px; } .grid-item-pattern { diff --git a/data/index.htm b/data/index.htm index 9c27311..8f2b1d2 100644 --- a/data/index.htm +++ b/data/index.htm @@ -5,7 +5,7 @@ - ESP8266 + FastLED by Evil Genius Labs + Cube by Evil Genius Labs @@ -36,7 +36,7 @@