Files
bobbycar-boardcomputer-firm…/main/displays/ledstripcolorsdisplay.h
2023-08-14 15:34:31 +02:00

31 lines
699 B
C++

#pragma once
// system includes
#include <array>
// 3rdparty lib includes
#include <FastLED.h>
// local includes
#include "bobbydisplaywithtitle.h"
#include "ledstrip.h"
class LedstripColorsDisplay : public BobbyDisplayWithTitle
{
using Base = BobbyDisplayWithTitle;
public:
std::string title() const override;
void initScreen(espgui::TftInterface &tft) override;
void redraw(espgui::TftInterface &tft) override;
void buttonPressed(espgui::Button button) override;
void drawColors(espgui::TftInterface &tft);
void drawSide(espgui::TftInterface &tft, Bobbycar_Side side, unsigned int color);
void clearSides();
private:
bool already_drew_circle{false};
};