Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#pragma once
#include "grid/FlashingLedsInterface.h"
#include "grid/GridInterface.h"
#include "types/Coordinates.h"
#include <freertos/thread.hpp>
#include <etl/vector.h>
namespace grid
{
class LedOutputInterface;
class FlashingLeds: public FlashingLedsInterface, private freertos::Thread
{
public:
explicit FlashingLeds( LedOutputInterface* ledOutput );
void add( const Coordinates& coordinates, const FlashingColors& colors ) override;
void remove( const Coordinates& coordinates ) override;
void removeAll() override;
private:
void Run() override;
struct FlashingLed
{
Coordinates coordinates;
FlashingColors color;
};
LedOutputInterface& ledOutput_;
etl::vector<FlashingLed, grid::NUMBER_OF_LEDS> led_;
};
} // namespace grid
9317196ccThis file is pinned to the selected release. Download the original to open it in your design tool.