mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
317a903b14
* rework structure of leddevice source tree * fix data type vor v4l sig detection value in webui * automate leddevicefactory.cpp
32 lines
649 B
C++
32 lines
649 B
C++
#pragma once
|
|
|
|
// Hyperion includes
|
|
#include "ProviderHID.h"
|
|
|
|
///
|
|
/// LedDevice implementation for a paintpack device ()
|
|
///
|
|
class LedDevicePaintpack : public ProviderHID
|
|
{
|
|
public:
|
|
///
|
|
/// Constructs specific LedDevice
|
|
///
|
|
/// @param deviceConfig json device config
|
|
///
|
|
LedDevicePaintpack(const QJsonObject &deviceConfig);
|
|
|
|
/// constructs leddevice
|
|
static LedDevice* construct(const QJsonObject &deviceConfig);
|
|
|
|
private:
|
|
///
|
|
/// Writes the RGB-Color values to the leds.
|
|
///
|
|
/// @param[in] ledValues The RGB-color per led
|
|
///
|
|
/// @return Zero on success else negative
|
|
///
|
|
virtual int write(const std::vector<ColorRgb>& ledValues);
|
|
};
|