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:
redPanther
2016-11-29 23:14:15 +01:00
committed by GitHub
parent 6b3f0e42b5
commit 81dea1583d
12 changed files with 297 additions and 120 deletions

View File

@@ -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;
};