31 lines
699 B
C++
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};
|
|
};
|