Skip to content

Commit

Permalink
fix(flex-stacker): add the channels for the 4th LED of the status bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
vegano1 committed Dec 17, 2024
1 parent a4f1652 commit d442573
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions stm32-modules/include/flex-stacker/flex-stacker/ui_task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ concept UIPolicyIface = requires(Policy& p) {
&&is31fl::IS31FL_Policy<Policy>;

// There are 3 channels per color
using ChannelMapping = std::array<size_t, 3>;
using ChannelMapping = std::array<size_t, 4>;

static constexpr ChannelMapping white_channels{2, 3, 4, 5};
static constexpr ChannelMapping red_channels{6, 9, 12, 15};
static constexpr ChannelMapping green_channels{7, 10, 13, 16};
static constexpr ChannelMapping blue_channels{8, 11, 14, 17};

static constexpr ChannelMapping white_channels{3, 4, 5};
static constexpr ChannelMapping red_channels{6, 9, 12};
static constexpr ChannelMapping green_channels{7, 10, 13};
static constexpr ChannelMapping blue_channels{8, 11, 14};

static auto color_to_channels(StatusBarColor color) -> const ChannelMapping& {
switch (color) {
Expand Down

0 comments on commit d442573

Please sign in to comment.