Skip to content

Commit

Permalink
IV-6 V2 added, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
mcer12 committed May 3, 2023
1 parent 11a1cd1 commit d5dbf36
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions Firmware/FLORA_FIRMWARE/FLORA_FIRMWARE.ino
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,17 @@

// Pick a clock version below!
//#define CLOCK_VERSION_IV6
//#define CLOCK_VERSION_IV6_V2
//#define CLOCK_VERSION_IV12
#define CLOCK_VERSION_IV22

#if !defined(CLOCK_VERSION_IV6) && !defined(CLOCK_VERSION_IV12) && !defined(CLOCK_VERSION_IV22)
#if !defined(CLOCK_VERSION_IV6) && !defined(CLOCK_VERSION_IV6_V2) && !defined(CLOCK_VERSION_IV12) && !defined(CLOCK_VERSION_IV22)
#error "You have to select a clock version! Line 25"
#endif

#define AP_NAME "FLORA_"
#define FW_NAME "FLORA"
#define FW_VERSION "5.1.2"
#define FW_VERSION "5.1.3"
#define CONFIG_TIMEOUT 300000 // 300000 = 5 minutes

// ONLY CHANGE DEFINES BELOW IF YOU KNOW WHAT YOU'RE DOING!
Expand All @@ -63,6 +64,7 @@ const char* update_password = "flora";
const char* ntpServerName = "pool.ntp.org";

const int dotsAnimationSteps = 2000; // dotsAnimationSteps * TIMER_INTERVAL_uS = one animation cycle time in microseconds

const uint8_t PixelCount = 14; // Addressable LED count

HsbColor red[] = {
Expand Down Expand Up @@ -96,7 +98,7 @@ HsbColor azure[] = {
HsbColor(RgbColor(0, 200, 200)), // HIGH
};

#if defined(CLOCK_VERSION_IV6)
#if defined(CLOCK_VERSION_IV6) || defined(CLOCK_VERSION_IV6_V2)
HsbColor colonColorDefault[] = {
HsbColor(RgbColor(30, 70, 50)), // LOW
HsbColor(RgbColor(50, 100, 80)), // MEDIUM
Expand Down Expand Up @@ -128,7 +130,7 @@ RgbColor currentColor = RgbColor(0, 0, 0);
//RgbColor colonColorDefault = RgbColor(90, 27, 7);
//RgbColor colonColorDefault = RgbColor(38, 12, 2);

#if defined(CLOCK_VERSION_IV6)
#if defined(CLOCK_VERSION_IV6) || defined(CLOCK_VERSION_IV6_V2)
const uint8_t registersCount = 6;
const uint8_t segmentCount = 8;
const uint8_t digitPins[registersCount][segmentCount] = {
Expand Down
4 changes: 2 additions & 2 deletions Firmware/FLORA_FIRMWARE/neopixel_fns.ino
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void updateColonColor(RgbColor color) {
RgbColor colorLow = color;

if (json["colon"].as<int>() == 3) {
#ifdef CLOCK_VERSION_IV12
#if defined(CLOCK_VERSION_IV12) || defined(CLOCK_VERSION_IV6_V2)
colorMed = RgbColor::LinearBlend(color, RgbColor(0, 0, 0), 0.1);
colorMedLow = RgbColor::LinearBlend(color, RgbColor(0, 0, 0), 0.3);
colorLow = RgbColor::LinearBlend(color, RgbColor(0, 0, 0), 0.6);
Expand All @@ -91,7 +91,7 @@ void updateColonColor(RgbColor color) {
colorMedLow = colorGamma.Correct(colorMedLow);
colorLow = colorGamma.Correct(colorLow);

#ifdef CLOCK_VERSION_IV12
#if defined(CLOCK_VERSION_IV12) || defined(CLOCK_VERSION_IV6_V2)
strip.SetPixelColor(3, colorHigh);
strip.SetPixelColor(2, colorMed);
strip.SetPixelColor(4, colorMed);
Expand Down
Binary file added Resources/IV-6_V2_BOM.csv
Binary file not shown.
Binary file added Resources/IV-6_V2_GERBER.zip
Binary file not shown.
Binary file added Resources/IV-6_V2_SCHEMATIC.pdf
Binary file not shown.
Binary file added Resources/IV-6_V2_pickandplace.csv
Binary file not shown.

0 comments on commit d5dbf36

Please sign in to comment.