Skip to content

Commit

Permalink
small edits and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
mcer12 committed May 10, 2021
1 parent e815b49 commit 082bec5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Firmware/FLORA_FIRMWARE/FLORA_FIRMWARE.ino
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

#define AP_NAME "FLORA_"
#define FW_NAME "FLORA"
#define FW_VERSION "4.0"
#define FW_VERSION "4.1"
#define CONFIG_TIMEOUT 300000 // 300000 = 5 minutes

// ONLY CHANGE DEFINES BELOW IF YOU KNOW WHAT YOU'RE DOING!
Expand Down Expand Up @@ -176,7 +176,7 @@ const uint8_t bri_vals[3] = { // These need to be multiples of 8 to enable cross
const uint8_t bri_vals_separate[3][6] = {
{8, 8, 8, 8, 8, 8}, // Low brightness
{24, 24, 24, 24, 24, 24}, // Medium brightness
{32, 32, 32, 48, 48, 32}, // High brightness
{48, 48, 48, 48, 48, 48}, // High brightness
};


Expand Down
7 changes: 5 additions & 2 deletions Firmware/FLORA_FIRMWARE/config_portal.ino
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void handleNotFound() {
html += "</p>";
}
html += htmlFooter();

server.sendHeader("Cache-Control", "no-cache, no-store, must-revalidate");
server.sendHeader("Pragma", "no-cache");
server.sendHeader("Expires", "-1");
Expand Down Expand Up @@ -360,9 +360,12 @@ void handleRoot() {
html += "<option value=\"1\"";
if (colon == 1) html += " selected";
html += ">Always ON</option>";
#if !defined(CLOCK_VERSION_IV22)
// gradient doesn't make sense on IV-22 colon
html += "<option value=\"3\"";
if (colon == 3) html += " selected";
html += ">Always ON with gradient</option>";
html += ">Always ON (gradient)</option>";
#endif
html += "<option value=\"2\"";
if (colon == 2) html += " selected";
html += ">ON/OFF each second</option>";
Expand Down
7 changes: 2 additions & 5 deletions Firmware/FLORA_FIRMWARE/neopixel_fns.ino
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,16 @@ void updateColonColor(RgbColor color) {
RgbColor colorMed = color;
RgbColor colorLow = color;

#if defined(CLOCK_VERSION_IV6) || defined(CLOCK_VERSION_IV12)
if (json["colon"].as<int>() == 4) {
if (json["colon"].as<int>() == 3) {
colorMed = RgbColor::LinearBlend(color, RgbColor(0, 0, 0), 0.5);
colorLow = RgbColor::LinearBlend(color, RgbColor(0, 0, 0), 0.7);
}
#endif


// Gamma correction => linearize brightness
colorHigh = colorGamma.Correct(colorHigh);
colorMed = colorGamma.Correct(colorMed);
colorLow = colorGamma.Correct(colorLow);


strip.SetPixelColor(2, colorHigh);
strip.SetPixelColor(3, colorHigh);
strip.SetPixelColor(1, colorMed);
Expand Down

0 comments on commit 082bec5

Please sign in to comment.