-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathledstrip.h
43 lines (29 loc) · 862 Bytes
/
ledstrip.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef LEDSTRIP_H
#define LEDSTRIP_H
#include <QLabel>
#include "visualizationwidget.h"
namespace Ui {
class LedStrip;
}
class QPixmap;
class LedStrip : public QWidget, public VisualizationWidget
{
Q_OBJECT
Ui::LedStrip *ui;
unsigned numLeds;
const stubserver::LedStripState *ledState;
// pixel data
uint8_t r[stubserver::LedStripState::MAX_LEDS];
uint8_t g[stubserver::LedStripState::MAX_LEDS];
uint8_t b[stubserver::LedStripState::MAX_LEDS];
public:
LedStrip(QWidget *parent, const char *title);
~LedStrip();
//----- VisualizationClient
virtual void notify(const stubserver::VisibleDeviceState &state) override;
signals:
void valueChanged(const stubserver::LedStripState *, unsigned to);
public slots:
void updateUi(const stubserver::LedStripState *, unsigned to);
};
#endif // LEDSTRIP_H