hyperion.ng/libsrc
penfold42 f96b0143a8 [untested] added Sk6822 led device support (#397)
* Adding support for sk6822 timing
This isnt complete, but should be a good starting point for others to learn from.

1) Here is where the led device source is located:

cd libsrc/leddevice

2) Find the files that need changing:

root@loungepi:libsrc/leddevice# grep -ri 2812spi *
CMakeLists.txt:         ${CURRENT_SOURCE_DIR}/LedDeviceWs2812SPI.h
CMakeLists.txt:         ${CURRENT_SOURCE_DIR}/LedDeviceWs2812SPI.cpp
LedDeviceFactory.cpp:   #include "LedDeviceWs2812SPI.h"
LedDeviceFactory.cpp:   REGISTER(Ws2812SPI);
LedDeviceSchemas.qrc:           <file alias="schema-ws2812spi">schemas/schema-ws2812spi.json</file>
LedDeviceWs2812SPI.cpp:#include "LedDeviceWs2812SPI.h"
LedDeviceWs2812SPI.cpp:LedDeviceWs2812SPI::LedDeviceWs2812SPI(const QJsonObject &deviceConfig)
LedDeviceWs2812SPI.cpp:LedDevice* LedDeviceWs2812SPI::construct(const QJsonObject &deviceConfig)
LedDeviceWs2812SPI.cpp: return new LedDeviceWs2812SPI(deviceConfig);
LedDeviceWs2812SPI.cpp:bool LedDeviceWs2812SPI::init(const QJsonObject &deviceConfig)
LedDeviceWs2812SPI.cpp:int LedDeviceWs2812SPI::write(const std::vector<ColorRgb> &ledValues)
LedDeviceWs2812SPI.h:class LedDeviceWs2812SPI : public ProviderSpi
LedDeviceWs2812SPI.h:   LedDeviceWs2812SPI(const QJsonObject &deviceConfig);

3) Copy the existing files as a starting point:

cp LedDeviceWs2812SPI.cpp LedDeviceSk6822SPI.cpp
cp LedDeviceWs2812SPI.h LedDeviceSk6822SPI.h
cp schemas/schema-ws2812spi.json schemas/schema-sk6822spi.json

4) Do some search and replacing:

:%s/Ws2812SPI/Sk6822SPI/g

5) edit the other files (see the diffs in this commit)

* Added wait time and reset time

* Fixed up debugging output and commented it out.
2017-02-14 09:33:28 +01:00
..
blackborder JsonCpp to QTJson (Part 3) (#257) 2016-09-25 21:59:31 +02:00
boblightserver implement optional color correction for V4L only (#267) 2016-10-10 18:29:54 +02:00
bonjour Travis osx support (#155) 2016-08-07 18:39:45 +02:00
commandline fix/refactor backlight stuff (#394) 2017-02-11 22:52:47 +01:00
effectengine priorities rework, webc update (#366) 2017-01-17 21:53:35 +01:00
grabber destroy grabbers and other stuff on hyperiond restart via webui (#375) 2017-01-22 14:31:11 +01:00
hyperion fix/refactor backlight stuff (#394) 2017-02-11 22:52:47 +01:00
jsonserver fix/refactor backlight stuff (#394) 2017-02-11 22:52:47 +01:00
kodivideochecker update adjustments and ui (#384) 2017-02-08 14:36:28 +01:00
leddevice [untested] added Sk6822 led device support (#397) 2017-02-14 09:33:28 +01:00
protoserver make video from proto available in webui live view (#356) 2016-12-30 20:18:41 +01:00
udplistener implement optional color correction for V4L only (#267) 2016-10-10 18:29:54 +02:00
utils fix/refactor backlight stuff (#394) 2017-02-11 22:52:47 +01:00
webconfig update adjustments and ui (#384) 2017-02-08 14:36:28 +01:00
CMakeLists.txt Qcommandlineparser (#199) 2016-08-28 15:10:43 +02:00