mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
3d02fecc7a
Moved color transform to utils lib
33 lines
387 B
C++
33 lines
387 B
C++
|
|
#pragma once
|
|
|
|
// QT includes
|
|
#include <QTimer>
|
|
|
|
// Hyperion includes
|
|
#include <hyperion/Hyperion.h>
|
|
|
|
class RainbowBootSequence : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
RainbowBootSequence(Hyperion * hyperion);
|
|
|
|
void start();
|
|
|
|
private slots:
|
|
void update();
|
|
|
|
private:
|
|
QTimer _timer;
|
|
|
|
Hyperion * _hyperion;
|
|
|
|
int _priority;
|
|
|
|
std::vector<RgbColor> _ledColors;
|
|
int _iterationCounter;
|
|
};
|
|
|