hyperion.ng/include/bootsequence/RainbowBootSequence.h
T. van der Zwan 3d02fecc7a Added 'rainbow' boot sequence
Moved color transform to utils lib
2013-08-23 16:24:10 +00:00

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;
};