Created first draft of 'hyperion-d'.

This commit is contained in:
T. van der Zwan
2013-08-14 08:54:49 +00:00
parent b411b166ae
commit 7bdd10859e
6 changed files with 77 additions and 25 deletions

View File

@@ -89,7 +89,12 @@ Hyperion::~Hyperion()
delete mRedTransform;
}
void Hyperion::setValue(int priority, std::vector<RgbColor>& ledColors)
unsigned Hyperion::getLedCount() const
{
return mLedString.leds().size();
}
void Hyperion::setValue(int priority, std::vector<RgbColor>& ledColors, const int timeout_ms)
{
// Apply the transform to each led and color-channel
for (RgbColor& color : ledColors)