Go to file
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
.travis platform cleanup and cmake osx fix (#294) 2016-11-20 22:57:19 +01:00
assets [untested] added Sk6822 led device support (#397) 2017-02-14 09:33:28 +01:00
bin update adjustments and ui (#384) 2017-02-08 14:36:28 +01:00
cmake update adjustments and ui (#384) 2017-02-08 14:36:28 +01:00
config fix/refactor backlight stuff (#394) 2017-02-11 22:52:47 +01:00
dependencies update protobuffer with aa64 fixes (#342) 2016-12-19 00:14:46 +01:00
doc Qcommandlineparser (#199) 2016-08-28 15:10:43 +02:00
effects improve serial hotplug (#389) 2017-02-09 20:10:57 +01:00
include fix/refactor backlight stuff (#394) 2017-02-11 22:52:47 +01:00
libsrc [untested] added Sk6822 led device support (#397) 2017-02-14 09:33:28 +01:00
src fix/refactor backlight stuff (#394) 2017-02-11 22:52:47 +01:00
test improve serial hotplug (#389) 2017-02-09 20:10:57 +01:00
.gitignore add json check before compile (#354) 2016-12-29 23:27:33 +01:00
.gitmodules update module regarding protobuf (#104) 2016-07-11 23:29:20 +02:00
.travis.yml extend effect engine with qt image effects (#249) 2016-09-21 22:01:50 +02:00
CMakeLists.txt implement adjustable image2ledmaptype for proto (#355) 2016-12-30 13:58:25 +01:00
CODING_STYLE.md add ability for default values in providerudp (#251) 2016-09-22 09:19:31 +02:00
CompileHowto.md improve serial hotplug (#389) 2017-02-09 20:10:57 +01:00
CrossCompileHowto.txt Update package creation (#186) 2016-08-20 16:37:45 +02:00
HyperionConfig.h.in add json check before compile (#354) 2016-12-29 23:27:33 +01:00
ISSUE_TEMPLATE preperation for next release and cleanup 2016-04-26 12:27:59 +02:00
LICENSE create debian packages / multiple configs (#650) 2016-05-24 19:56:43 +02:00
PULL_REQUEST_TEMPLATE enable components at runtime + grabber refactoring (#160) 2016-08-11 07:13:55 +02:00
README.md Update README.md (#316) 2016-12-06 12:54:34 +01:00
version.json Web: Dashboard version comparison (#196) 2016-08-23 20:17:50 +02:00

HYPERION

This is a pre alpha development repository for the next major version of hyperion


Important notice!

Hyperion.NG is under heavy development. This version is currently only for development purpose. Please do not use it for your 'productiv' setup!

If you want to use hyperion as 'normal user', please use current stable version

Besides of that .... Feel free to join us! We are looking always for people who wants to participate.


Hyperion is an opensource 'AmbiLight' implementation with support for many LED devices and video grabbers.

The main features of Hyperion are:

  • Low CPU load makes it perfect for SoCs like Raspberry Pi
  • Json interface which allows easy integration into scripts
  • A command line utility to for testing and integration in automated environment
  • Priority channels are not coupled to a specific led data provider which means that a provider can post led data and leave without the need to maintain a connection to Hyperion. This is ideal for a remote application (like our Android app).
  • Kodi-checker which checks the playing status of Kodi and decides whether or not to capture the screen.
  • Black border detector.
  • A scriptable (Python) effect engine
  • A web ui to configure and remote control hyperion

More information can be found on the official Hyperion Wiki

If you need further support please open a topic at the our new forum! Hyperion webpage/forum.

Building

See Compilehowto and CrossCompileHowto.

License

The source is released under MIT-License (see http://opensource.org/licenses/MIT).