mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Added 'rainbow' boot sequence
Moved color transform to utils lib
This commit is contained in:
32
include/bootsequence/RainbowBootSequence.h
Normal file
32
include/bootsequence/RainbowBootSequence.h
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
#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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user