1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

IMPROVEMENT LED bins - scan once, output for more than one LED (Support for longer strips)

Discussion in 'Feature Requests' started by Zavage, 7 April 2018.

  1. Zavage

    Zavage New Member

    Messages:
    15
    Hardware:
    RPi3
    As I noticed that running many LEDs can cause hyperion to simply crash (I just can not get it to run smoothly), I came up with an idea that should ease the lifes of many.

    If you would be able to sum up many LEDs into "bins" where the colors are only calculated per bin, thus making 2 or more LEDs identical. This will cause Pi's to consume way less CPU for longer strips. I am sure there is already a way to do color calculation not per each LED with intense json scripting.


    What do you think?
     
    Last edited: 7 April 2018
  2. penfold42

    penfold42 Moderator Developer

    Messages:
    742
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    How long is “long” ?

    I’ve had a 16x16 led matrix running with no issues scraping the screen.

    I’ve also had 750 leds driven by the python effect engine (but I can’t remember if I every tried screen grabbing with it )
     
  3. penfold42

    penfold42 Moderator Developer

    Messages:
    742
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    I just checked the source - hyperion.ng can “clone” an led by index number.
    So you can:
    - define led 0 with its hscan and vscan
    - define led 1 as “clone 0”
    - define led 2 as “clone 0”
    - define led 3 with its hscan and vscan
    - define led 4 as “clone 3”
    - define led 5 as “clone 3”
     
  4. penfold42

    penfold42 Moderator Developer

    Messages:
    742
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
  5. Zavage

    Zavage New Member

    Messages:
    15
    Hardware:
    RPi3
    So this actually works in hyperions standard version, or do I need a special one?

    Edit:
    Tested it, doesnt work in my version, the clones just stay black,
     
    Last edited: 8 April 2018
  6. penfold42

    penfold42 Moderator Developer

    Messages:
    742
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Nope - the explicit clone is only in Hyperion.ng

    In classic 2 (ore more) leds can have the same hscan and vscan I don’t think there’s a performance benefit