Commit Graph

37 Commits

Author SHA1 Message Date
penfold42
f9690b03f4 updated reference to rpi_ws281x sub module to point to penfold42 fork (#655)
* Removed -HUP so the default -TERM signal is sent instead.
- hyperiond only listens for TERM and INT. HUP is often used to get an exe to reread its config

Changed pgrep to add '-x' so it wont partial match on the exe name.
- I have multiple instances with multiple hyperiond-instance1 names
- this ensures the service script only kills the right process

* reversing errant change to hyperion.systemd.sh

* cleaned up a couple of compiler warnings

* moved bitpair_to_byte initialiser to (hopefully) work with older GCC

* compiler warning in udp driver
removed some tabs in ws2812b.cpp

* formatting - spaces to tabs

* moved rpi_281x to tag sk6812-v1.0

* moving to my fork of rpi_281x


Former-commit-id: 34ca0f4f760c6cbb47d3c434c920827ce12bb23e
2016-05-26 07:04:49 +02:00
redPanther
b293ea20db build script optimization (#642)
* implement make install
set CMAKE_INSTALL_PREFIX e.g. to /opt to install to /opt/hyperion
set ENABLE_SYSTEM_INSTALL to ON to activate installation
after compiling use
make install
or
make install/strip
(for performance/size optimized binaries - compile in Release to get best performance)

* cleanup cmake files
use
cmake -DINSTALL_PREFIX=/opt/hyperion ..
to install all files to hyperion or
cmake -DINSTALL_PREFIX=/usr/
to install to usr. install folders are linux standard. bin go to bin folder and additionals (effects) go to share/hyperion

* add uninstall target - be patient with that, this will remove files from your system
install service files to share/hyperion - if you want to use them you have to make a symlink to your location of service files

* optimize build release script
install service files into hyperion share folder (services not activated, this must be done by distribution package script)
initial support of cmake option -DPLATFORM= option. This selects platform specific cmake flags. no need for -DENABLE_... options (unless you want some special things)
automatic detect for apple build

* update submodule


Former-commit-id: 5f06f314841810c780c871f810158010d3d2de70
2016-05-22 00:27:06 +02:00
penfold42
c17e4894d9 Apa102 fix if the led strip has more physical LEDs than you want to configure with hyperion (#626)
* Removed -HUP so the default -TERM signal is sent instead.
- hyperiond only listens for TERM and INT. HUP is often used to get an exe to reread its config

Changed pgrep to add '-x' so it wont partial match on the exe name.
- I have multiple instances with multiple hyperiond-instance1 names
- this ensures the service script only kills the right process

* reversing errant change to hyperion.systemd.sh

* started bug fixes for APA strips with more physical leds than configured

* 1st cut of changes to APA102.

now looks at config for "leds" which is the # of hardware leds in the strip.
This enables us to write the correct trailer length in the packet.

Also fixed a bug where switchoff was writing the wrong # of leds

* removed commented out old code

removed debug printf

* included prebuild test binary for Pi2

* Second attempt at the fix.
BEFORE:
If you have more physcial LEDs than defined in the "leds" "index" section of the config there is random junk added to the end of the strip.

WITH THIS FIX:
In the "device" section specify the number of physical leds with:
 "leds" : 212,
If this is greater than the number of led indexes, additional LEDs are set to black
If this is smaller than the number of led indexes, it is ignored

* included test binary

* Clean exit if the device config is missing or a non-supported device type is specified

Former-commit-id: 8ae96188fa74d91b13a921e7d5faf6d6ac1c42ee
2016-05-10 12:16:19 +02:00
penfold42
cda2232080 updating reference to rpi_ws281x
Former-commit-id: 6949fe847d9c4181c924a13ed0715ecd71b98499
2016-03-14 10:02:10 +11:00
Mark Walker
78e606a1c4 Add new WS281x driver
Add a new WS281x driver which is a wrapper around jgarff's ws281x library which
works on Pi B+, Pi 2, Pi Zero and probably Pi 3 as well.

jgarff's ws281x library is included as a submodule


Former-commit-id: e473dfd36d31b14598da5e56e4b8bf9f2aa7bb24
2016-03-08 20:41:13 -08:00
Schöck, Florian
b898f25f98 updated zip to match newest source
Former-commit-id: 2e54f40d48a993a66f07f5b655965847a9bf7d14
2015-11-29 19:56:33 +01:00
Schöck, Florian
8d52466acd re-added buffer underrun handling
should not be necessary because the number of LED's in a usual Lightberry setup is to low, but it's nice to have implemented.


Former-commit-id: def3c46687670439be572e6b9c2dd1de5be2f1b5
2015-11-29 19:38:40 +01:00
Schöck, Florian
f950ec7df6 changed the SPI frequency to 2 Mhz.
APA102 can handle MUCH higher frequencies than WS2801, so 2Mhz is no big deal for them


Former-commit-id: 814faa648e4f39d7105710ff872bde00aaeaada9
2015-11-29 19:35:26 +01:00
Schöck, Florian
4cdba8cdb6 fixed boot animation
Former-commit-id: 418ed83a4bd4ddaae79bf41de7fd9fb0794f8239
2015-11-29 19:31:51 +01:00
Schöck, Florian
f910c717bb reformated code
(Arduino IDE auto-reformat)


Former-commit-id: 8f94b2bb865337ba7b0538617857432ea0376aea
2015-11-29 19:24:01 +01:00
Schöck, Florian
cf359e5182 corrected the source to exactly match the protocol of the APA 102 LED's
Former-commit-id: 10d097ff4bbcfa3c717c72138ea0cb1d9e629565
2015-11-26 18:21:20 +01:00
Schöck, Florian
57c5c1ecf5 added the LightberryHDUSBAPA102.1.ino as a source file
Former-commit-id: 4923f654cefc5a08df5424e6a2553111e6914b10
2015-11-26 18:04:43 +01:00
tociek
fa0b8db131 Fix to the adalightapa102 firmware
Fix to the firmware when converter would require reconnect after 15
seconds of hyperion inactivity


Former-commit-id: 1952eaad1ddbea3ce23252bb1d9c96ba29d72184
2015-11-23 21:47:04 +01:00
tociek
7551a06cf4 Corrected APA102 USB (adalight) led device
I have removed the 'hack' that allowed to use APA102 with original
version of adalight. I have modified adalight code and placed it into
dependencies folder. This change is not backward compatible, so it won't
work with original adalight code.
The reason for the change is that last leds were not acting as they
should (last led red). Additionally with this change and new arduino
code, performance is  lot better and lights change much smoother.
I have also changed switchOff method that requires different data sent
to apa102 to turn all leds off.

Enjoy :)
Jacek


Former-commit-id: 624fe6c429aee896b150d23289f0be19e040474d
2015-11-12 00:22:11 +01:00
poljvd
a041941e7a Fix build with embedded protobuf library
Former-commit-id: 5c60566f2d4a9c65fc0fe677841a34d7ef73549a
2014-12-20 20:15:04 +01:00
poljvd
b50611fef7 add protobuf as submodule
Former-commit-id: 56497c61fa8403b489c1fc7ca45a9d2e964a4e10
2014-12-19 21:21:00 +01:00
poljvd
6248489aed Improve readability of usage message
Former-commit-id: 7919b8e95e57518ee5dd60c6de8b6524a1749998
2014-12-17 16:43:14 +01:00
T. van der Zwan
fdaa5c0068 Added tinkerforge as local dependency
Former-commit-id: b739eba0676d9c105416d9040ffbe78b2dc4bfbd
2014-03-06 21:48:11 +01:00
Johan
e0d405034f Add support for Python 3
Former-commit-id: b6aec954ba0e79ba5697ea8cc305eb9f7d29f332
2014-02-26 18:10:17 +01:00
johan
305a2e856a Added signal detection option
Former-commit-id: 1bd70d02814d6238c488db765d9d25af655c1872
2014-01-26 16:00:33 +01:00
johan
6723c7bf2b Moved test/v4l2_to_png to src/hyperion-v4l2; Added json backend temporarily
Former-commit-id: 8c4e0ef7add8016c522d0b4c6f4df8886b905e36
2014-01-25 17:35:06 +01:00
T. van der Zwan
fd835b5bfb Merge branch 'master' into macos_compile
Conflicts:
	libsrc/leddevice/CMakeLists.txt
	libsrc/leddevice/LedDeviceFactory.cpp
	test/TestRs232HighSpeed.cpp

Former-commit-id: 5583f2f881afd1a9b0c8ec3a52d7d3b54fe1dff7
2013-12-28 08:55:06 +01:00
T. van der Zwan
c4e20d0d36 Fixed compiler warning is getoptplusplus
Former-commit-id: ab8f29c2652d7905dd267ae41530e2d37c6ab488
2013-12-19 21:02:02 +00:00
T. van der Zwan
a3ba0b58af Added todo for hidapi rename
Former-commit-id: 27a02e329378f980bd3ee9e4be983c4e11ae0614
2013-12-18 14:54:43 +00:00
T. van der Zwan
feb88d56bd Fixed typo in hidapi cmake file
Former-commit-id: d1c2131b7e9484e91df58a3c08b58fc122cab693
2013-12-18 08:11:18 +00:00
Timo van der Zwan
6f15e89d29 Implemented compile capability for MacOS.
Former-commit-id: 86e560e0d4f03251ee08a648ffa6fd9a0e01ae78
2013-12-17 22:53:16 +01:00
johan
b2f52aad89 Lightpack device added based on hidapi
Former-commit-id: 4d3d9c01b169991757587a67479094186d52e6e8
2013-11-23 11:14:27 +01:00
Johan
d1c1e56bd1 hidapi added as dependency library
Former-commit-id: 067d8ed87d0e416fb8518e05344597a00fc263c2
2013-11-22 14:42:02 +01:00
johan
212ce35861 Created release with sedu device
Former-commit-id: c541a2d8f04572c7cf493a112ebb283e561afd99
2013-11-05 21:32:21 +01:00
T. van der Zwan
50bb43f1ec Added missing dependency of last commit (serial)
Former-commit-id: 2f50af95f36600716e14d5e884ddd7b55ae982fc
2013-11-05 19:26:33 +00:00
T. van der Zwan
cb2cc5c259 Removed incorrect file-headers
Added rs232 library
Added abstract Rs232 device


Former-commit-id: 9a2830f71376f0716edea594afc526018a530fa3
2013-11-05 15:46:17 +00:00
johan
756e9a28c0 Application build time added to application to write to stdout at startup
Former-commit-id: 4fca64a4b7ae6f0d74495173df26538cebae95f3
2013-10-21 20:29:30 +02:00
johan
8e8e63011f Added some more modification documentation 2013-08-13 22:43:36 +02:00
johan
cc3baec022 Special command line option classes added 2013-08-11 21:49:11 +02:00
johan
29f6e41923 Added the option to leave out the short parameter option 2013-08-11 13:13:19 +02:00
johan
daabeaa03b project hyperion-remote created;
getoptPlusPlus dependency added;
small changes to getOptPlusPlus;
2013-08-11 11:54:16 +02:00
T. van der Zwan
10b5b80675 First working version with some test executables 2013-07-26 20:38:34 +00:00