9 #include <leddevice/LedDevice.h> 13 #include <tinkerforge/ip_connection.h> 14 #include <tinkerforge/bricklet_led_strip.h> 34 bool init(
const QJsonObject &deviceConfig);
54 virtual int write(
const std::vector<ColorRgb> &ledValues);
58 int transferLedData(
LEDStrip *ledstrip,
unsigned int index,
unsigned int length, uint8_t *redChannel, uint8_t *greenChannel, uint8_t *blueChannel);
79 std::vector<uint8_t> _redChannel;
82 std::vector<uint8_t> _greenChannel;
85 std::vector<uint8_t> _blueChannel;
88 unsigned int _colorChannelSize;
Definition: LedDeviceTinkerforge.h:17
Interface (pure virtual base class) for LedDevices.
Definition: LedDevice.h:32
int open()
Attempts to open a connection to the master bricklet and the led strip bricklet.
Definition: LedDeviceTinkerforge.cpp:65
Definition: ip_connection.h:343
Definition: ip_connection.h:196
bool init(const QJsonObject &deviceConfig)
Sets configuration.
Definition: LedDeviceTinkerforge.cpp:34
LedDeviceTinkerforge(const QJsonObject &deviceConfig)
Constructs specific LedDevice.
Definition: LedDeviceTinkerforge.cpp:12
static LedDevice * construct(const QJsonObject &deviceConfig)
constructs leddevice
Definition: LedDeviceTinkerforge.cpp:60