mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
update adalight sketch (#299)
* rename platform rpi-pwm to rpi. remove original rpi platform install symlink to bin folder create effects folder for custom effects * fix osx jobs evaluation * - add rewrite time to serial leds - rework adalight sketch * add analog output * adalight: add analog mode: last led * tune adalight sketch to final state move refresh code to leddevice base class, so every leddevice can use it
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
#include <map>
|
||||
#include <algorithm>
|
||||
|
||||
#include <QTimer>
|
||||
|
||||
// Utility includes
|
||||
#include <utils/ColorRgb.h>
|
||||
#include <utils/ColorRgbw.h>
|
||||
@@ -81,4 +83,15 @@ protected:
|
||||
static int _ledCount;
|
||||
static int _ledRGBCount;
|
||||
static int _ledRGBWCount;
|
||||
|
||||
/// Timer object which makes sure that led data is written at a minimum rate
|
||||
/// e.g. Adalight device will switch off when it does not receive data at least every 15 seconds
|
||||
QTimer _refresh_timer;
|
||||
|
||||
protected slots:
|
||||
/// Write the last data to the leds again
|
||||
int rewriteLeds();
|
||||
|
||||
private:
|
||||
std::vector<ColorRgb> _ledValues;
|
||||
};
|
||||
|
Reference in New Issue
Block a user