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

SOLVED "X11GRABBER ERROR: Unable to open display. DISPLAY environment variable not set"

Discussion in 'Software Support' started by Jerry, 4 January 2017.

  1. Jerry

    Jerry New Member

    Messages:
    2
    Hardware:
    32/64bit
    Hi All,

    I'm trying to get ambilight with Hyperion working on my XBMCbuntu setup. I got WS2812b leds , an Arduino Uno, and it works ....well...sort of...
    To test and try I have been able to get it all working on my laptop, Works great.
    Now I want to use it on the real thing, and I have everything set, but I can't get the leds to work, because of the following message : "X11GRABBER ERROR: Unable to open display. DISPLAY environment variable not set"

    Code:
    xbmc@xbmc:~$ export DISPLAY=:0.0
    xbmc@xbmc:~$ hyperion-x11
    hyperion-x11:
            version   : V1.03.2 (brindosch-99d9396/d3713a8-1469452981
            build time: Jul 25 2016 06:54:05
    X11GRABBER ERROR: Unable to open display. DISPLAY environment variable not set
    I have tried to set the DISPLAY variable , and the hyperion-x11 then starts.........
    Code:
    xbmc@xbmc:~$ hyperion-x11
    hyperion-x11:
            version   : V1.03.2 (brindosch-99d9396/d3713a8-1469452981
            build time: Jul 25 2016 06:54:05
    PROTOCONNECTION INFO: Connecting to Hyperion: 127.0.0.1:19445
    X11GRABBER INFO: Update of screen resolution: [0x0] => [1920x1080]
    X11GRABBER INFO: Using XRender for grabbing
    PROTOCONNECTION INFO: Connected to Hyperion: 127.0.0.1:19445
    
    .......but I think The DISPLAY variable needs to be set at boottime, but for the love of god, I have no idea how to do that...

    I have been google-ing for quite some time now, but I can't seem to find anything. Can someone please give me a nudge in the right direction?
     
  2. Paulchen-Panther

    Paulchen-Panther Ich komme wieder, keine Frage! Developer

    Messages:
    94
    Hardware:
    RPi1/Zero, 32/64bit, +Arduino
  3. Jerry

    Jerry New Member

    Messages:
    2
    Hardware:
    32/64bit
    OK, got it working now.

    Maybe some one has the same issue as I did , so I will sum up the things I did to get it working.
    I have Xbmcbuntu (Kodibuntu nowadays) installed with LightDM as window manager. It boots directly to Kodi.

    I have bought WS2812b leds and I used 64 leds horizontaly and 39 leds verticaly on my 46" tv. (206 leds in total)

    I installed the Hyperion software as per wiki :
    Code:
    curl -k -L --output install_hyperion.sh --get https://raw.githubusercontent.com/hyperion-project/hyperion/master/bin/install_hyperion.sh
    chmod +x install_hyperion.sh
    sudo sh ./install_hyperion.sh
    The problem then was that I could not start hyperion-X11 due to the fact that the was no DISPLAY variable defined. On my laptop it worked almost straight away, but in Xbmcbuntu the DISPLAY variable is not set for some reason.

    To set this variable at boot I added the following line to the /etc/environment file :
    Code:
    DISPLAY=:0.0
    Then I created a file in the xbmc user home directory called .xsessionrc to start the hyperion-x11 grabber (in the background) with the following content :
    Code:
    /usr/bin/hyperion-x11 &
    The make sure your Arduino sketch has the same serialrate as the hyperion.config.json I used 460800. I had to add a delayAfterConnect value of 1500 to the hyperion.config.json file in order to make it work correctly.

    My hyperion.config.json file looks like this :
    Code:
    // Automatically generated configuration file for Hyperion ambilight daemon
    // Notice: All values are explained with comments at our wiki: wiki.hyperion-project.org (config area)
    // Generated by: HyperCon (The Hyperion deamon configuration file builder)
    // Created with HyperCon V1.03.1 (11.06.2016)
    
    {
        // DEVICE CONFIGURATION
        "device" :
        {
            "name"               : "MyHyperionConfig",
            "type"               : "adalight",
            "output"             : "/dev/ttyACM0",
            "rate"             : 460800,
            "delayAfterConnect"     : 1500,
            "colorOrder"         : "grb"
        },
    
        // COLOR CALIBRATION CONFIG
        "color" :
        {
            "channelAdjustment" :
            [
                {
                    "id"   : "default",
                    "leds" : "*",
                    "pureRed" :
                    {
                        "redChannel"        : 255,
                        "greenChannel"        : 0,
                        "blueChannel"        : 0
                    },
                    "pureGreen" :
                    {
                        "redChannel"        : 0,
                        "greenChannel"        : 255,
                        "blueChannel"        : 0
                    },
                    "pureBlue" :
                    {
                        "redChannel"        : 0,
                        "greenChannel"        : 0,
                        "blueChannel"        : 255
                    }
                }
            ],
            "temperature" :
            [
                {
                    "id"   : "default",
                    "leds" : "*",
                    "correctionValues" :
                    {
                        "red"     : 255,
                        "green"    : 255,
                        "blue"     : 255
                    }
                }
            ],
            "transform" :
            [
                {
                    "id"   : "default",
                    "leds" : "*",
                    "hsl" :
                    {
                        "saturationGain"    : 1.0000,
                        "luminanceGain"        : 1.0000,
                        "luminanceMinimum"        : 0.0000
                    },
                    "red" :
                    {
                        "threshold"     : 0.0000,
                        "gamma"         : 2.5000
                    },
                    "green" :
                    {
                        "threshold"     : 0.0000,
                        "gamma"         : 2.5000
                    },
                    "blue" :
                    {
                        "threshold"     : 0.0000,
                        "gamma"         : 2.5000
                    }
                }
            ],
        // SMOOTHING CONFIG
            "smoothing" :
            {
                "type"            : "linear",
                "time_ms"         : 200,
                "updateFrequency" : 20.0000,
                "updateDelay"     : 0
            }
        },
    
        // NO V4L2 GRABBER CONFIG
        // FRAME GRABBER CONFIG
        "framegrabber" :
        {
            "width" : 64,
            "height" : 64,
            "frequency_Hz" : 10.0,
            "priority" : 890
        },
    
        // BLACKBORDER CONFIG
        "blackborderdetector" :
        {
            "enable" : true,
            "threshold" : 0.0,
            "unknownFrameCnt" : 600,
            "borderFrameCnt" : 50,
            "maxInconsistentCnt" : 10,
            "blurRemoveCnt" : 1,
            "mode" : "default"
        },
    
        // BOOTEFFECT CONFIG
        "bootsequence" :
        {
            "color" : [0,0,0],
            "effect" : "Rainbow swirl fast",
            "duration_ms" : 3000,
            "priority" : 700
        },
    
        // JSON SERVER CONFIG
        "jsonServer" :
        {
            "port" : 19444
        },
    
        // PROTO SERVER CONFIG
        "protoServer" :
        {
            "port" : 19445
        },
    
        // EFFECT PATH
        "effects" :
        {
            "paths" :
            [
                "/media/scripts/hyperion/effects",
                "/media/scripts/hyperion/effects"
            ]
        },
    
        // NO KODI CHECK CONFIG
        // NO BOBLIGHT SERVER CONFIG
        // NO JSON/PROTO FORWARD CONFIG
    
        // LED CONFIGURATION
        "leds" :
        [
            {
                "index" : 0,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.9744, "maximum" : 1.0000 }
            },
            {
                "index" : 1,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.9487, "maximum" : 0.9744 }
            },
            {
                "index" : 2,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.9231, "maximum" : 0.9487 }
            },
            {
                "index" : 3,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.8974, "maximum" : 0.9231 }
            },
            {
                "index" : 4,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.8718, "maximum" : 0.8974 }
            },
            {
                "index" : 5,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.8462, "maximum" : 0.8718 }
            },
            {
                "index" : 6,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.8205, "maximum" : 0.8462 }
            },
            {
                "index" : 7,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.7949, "maximum" : 0.8205 }
            },
            {
                "index" : 8,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.7692, "maximum" : 0.7949 }
            },
            {
                "index" : 9,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.7436, "maximum" : 0.7692 }
            },
            {
                "index" : 10,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.7179, "maximum" : 0.7436 }
            },
            {
                "index" : 11,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.6923, "maximum" : 0.7179 }
            },
            {
                "index" : 12,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.6667, "maximum" : 0.6923 }
            },
            {
                "index" : 13,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.6410, "maximum" : 0.6667 }
            },
            {
                "index" : 14,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.6154, "maximum" : 0.6410 }
            },
            {
                "index" : 15,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.5897, "maximum" : 0.6154 }
            },
            {
                "index" : 16,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.5641, "maximum" : 0.5897 }
            },
            {
                "index" : 17,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.5385, "maximum" : 0.5641 }
            },
            {
                "index" : 18,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.5128, "maximum" : 0.5385 }
            },
            {
                "index" : 19,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.4872, "maximum" : 0.5128 }
            },
            {
                "index" : 20,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.4615, "maximum" : 0.4872 }
            },
            {
                "index" : 21,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.4359, "maximum" : 0.4615 }
            },
            {
                "index" : 22,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.4103, "maximum" : 0.4359 }
            },
            {
                "index" : 23,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.3846, "maximum" : 0.4103 }
            },
            {
                "index" : 24,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.3590, "maximum" : 0.3846 }
            },
            {
                "index" : 25,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.3333, "maximum" : 0.3590 }
            },
            {
                "index" : 26,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.3077, "maximum" : 0.3333 }
            },
            {
                "index" : 27,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.2821, "maximum" : 0.3077 }
            },
            {
                "index" : 28,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.2564, "maximum" : 0.2821 }
            },
            {
                "index" : 29,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.2308, "maximum" : 0.2564 }
            },
            {
                "index" : 30,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.2051, "maximum" : 0.2308 }
            },
            {
                "index" : 31,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.1795, "maximum" : 0.2051 }
            },
            {
                "index" : 32,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.1538, "maximum" : 0.1795 }
            },
            {
                "index" : 33,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.1282, "maximum" : 0.1538 }
            },
            {
                "index" : 34,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.1026, "maximum" : 0.1282 }
            },
            {
                "index" : 35,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.0769, "maximum" : 0.1026 }
            },
            {
                "index" : 36,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.0513, "maximum" : 0.0769 }
            },
            {
                "index" : 37,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.0256, "maximum" : 0.0513 }
            },
            {
                "index" : 38,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0256 }
            },
            {
                "index" : 39,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0156 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 40,
                "hscan" : { "minimum" : 0.0156, "maximum" : 0.0313 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 41,
                "hscan" : { "minimum" : 0.0313, "maximum" : 0.0469 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 42,
                "hscan" : { "minimum" : 0.0469, "maximum" : 0.0625 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 43,
                "hscan" : { "minimum" : 0.0625, "maximum" : 0.0781 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 44,
                "hscan" : { "minimum" : 0.0781, "maximum" : 0.0938 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 45,
                "hscan" : { "minimum" : 0.0938, "maximum" : 0.1094 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 46,
                "hscan" : { "minimum" : 0.1094, "maximum" : 0.1250 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 47,
                "hscan" : { "minimum" : 0.1250, "maximum" : 0.1406 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 48,
                "hscan" : { "minimum" : 0.1406, "maximum" : 0.1563 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 49,
                "hscan" : { "minimum" : 0.1563, "maximum" : 0.1719 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 50,
                "hscan" : { "minimum" : 0.1719, "maximum" : 0.1875 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 51,
                "hscan" : { "minimum" : 0.1875, "maximum" : 0.2031 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 52,
                "hscan" : { "minimum" : 0.2031, "maximum" : 0.2188 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 53,
                "hscan" : { "minimum" : 0.2188, "maximum" : 0.2344 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 54,
                "hscan" : { "minimum" : 0.2344, "maximum" : 0.2500 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 55,
                "hscan" : { "minimum" : 0.2500, "maximum" : 0.2656 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 56,
                "hscan" : { "minimum" : 0.2656, "maximum" : 0.2813 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 57,
                "hscan" : { "minimum" : 0.2813, "maximum" : 0.2969 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 58,
                "hscan" : { "minimum" : 0.2969, "maximum" : 0.3125 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 59,
                "hscan" : { "minimum" : 0.3125, "maximum" : 0.3281 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 60,
                "hscan" : { "minimum" : 0.3281, "maximum" : 0.3438 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 61,
                "hscan" : { "minimum" : 0.3438, "maximum" : 0.3594 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 62,
                "hscan" : { "minimum" : 0.3594, "maximum" : 0.3750 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 63,
                "hscan" : { "minimum" : 0.3750, "maximum" : 0.3906 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 64,
                "hscan" : { "minimum" : 0.3906, "maximum" : 0.4063 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 65,
                "hscan" : { "minimum" : 0.4063, "maximum" : 0.4219 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 66,
                "hscan" : { "minimum" : 0.4219, "maximum" : 0.4375 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 67,
                "hscan" : { "minimum" : 0.4375, "maximum" : 0.4531 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 68,
                "hscan" : { "minimum" : 0.4531, "maximum" : 0.4688 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 69,
                "hscan" : { "minimum" : 0.4688, "maximum" : 0.4844 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 70,
                "hscan" : { "minimum" : 0.4844, "maximum" : 0.5000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 71,
                "hscan" : { "minimum" : 0.5000, "maximum" : 0.5156 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 72,
                "hscan" : { "minimum" : 0.5156, "maximum" : 0.5313 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 73,
                "hscan" : { "minimum" : 0.5313, "maximum" : 0.5469 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 74,
                "hscan" : { "minimum" : 0.5469, "maximum" : 0.5625 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 75,
                "hscan" : { "minimum" : 0.5625, "maximum" : 0.5781 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 76,
                "hscan" : { "minimum" : 0.5781, "maximum" : 0.5938 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 77,
                "hscan" : { "minimum" : 0.5938, "maximum" : 0.6094 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 78,
                "hscan" : { "minimum" : 0.6094, "maximum" : 0.6250 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 79,
                "hscan" : { "minimum" : 0.6250, "maximum" : 0.6406 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 80,
                "hscan" : { "minimum" : 0.6406, "maximum" : 0.6563 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 81,
                "hscan" : { "minimum" : 0.6563, "maximum" : 0.6719 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 82,
                "hscan" : { "minimum" : 0.6719, "maximum" : 0.6875 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 83,
                "hscan" : { "minimum" : 0.6875, "maximum" : 0.7031 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 84,
                "hscan" : { "minimum" : 0.7031, "maximum" : 0.7188 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 85,
                "hscan" : { "minimum" : 0.7188, "maximum" : 0.7344 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 86,
                "hscan" : { "minimum" : 0.7344, "maximum" : 0.7500 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 87,
                "hscan" : { "minimum" : 0.7500, "maximum" : 0.7656 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 88,
                "hscan" : { "minimum" : 0.7656, "maximum" : 0.7813 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 89,
                "hscan" : { "minimum" : 0.7813, "maximum" : 0.7969 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 90,
                "hscan" : { "minimum" : 0.7969, "maximum" : 0.8125 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 91,
                "hscan" : { "minimum" : 0.8125, "maximum" : 0.8281 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 92,
                "hscan" : { "minimum" : 0.8281, "maximum" : 0.8438 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 93,
                "hscan" : { "minimum" : 0.8438, "maximum" : 0.8594 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 94,
                "hscan" : { "minimum" : 0.8594, "maximum" : 0.8750 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 95,
                "hscan" : { "minimum" : 0.8750, "maximum" : 0.8906 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 96,
                "hscan" : { "minimum" : 0.8906, "maximum" : 0.9063 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 97,
                "hscan" : { "minimum" : 0.9063, "maximum" : 0.9219 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 98,
                "hscan" : { "minimum" : 0.9219, "maximum" : 0.9375 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 99,
                "hscan" : { "minimum" : 0.9375, "maximum" : 0.9531 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 100,
                "hscan" : { "minimum" : 0.9531, "maximum" : 0.9688 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 101,
                "hscan" : { "minimum" : 0.9688, "maximum" : 0.9844 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 102,
                "hscan" : { "minimum" : 0.9844, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 103,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0256 }
            },
            {
                "index" : 104,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0256, "maximum" : 0.0513 }
            },
            {
                "index" : 105,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0513, "maximum" : 0.0769 }
            },
            {
                "index" : 106,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0769, "maximum" : 0.1026 }
            },
            {
                "index" : 107,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1026, "maximum" : 0.1282 }
            },
            {
                "index" : 108,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1282, "maximum" : 0.1538 }
            },
            {
                "index" : 109,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1538, "maximum" : 0.1795 }
            },
            {
                "index" : 110,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1795, "maximum" : 0.2051 }
            },
            {
                "index" : 111,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2051, "maximum" : 0.2308 }
            },
            {
                "index" : 112,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2308, "maximum" : 0.2564 }
            },
            {
                "index" : 113,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2564, "maximum" : 0.2821 }
            },
            {
                "index" : 114,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2821, "maximum" : 0.3077 }
            },
            {
                "index" : 115,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3077, "maximum" : 0.3333 }
            },
            {
                "index" : 116,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3333, "maximum" : 0.3590 }
            },
            {
                "index" : 117,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3590, "maximum" : 0.3846 }
            },
            {
                "index" : 118,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3846, "maximum" : 0.4103 }
            },
            {
                "index" : 119,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4103, "maximum" : 0.4359 }
            },
            {
                "index" : 120,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4359, "maximum" : 0.4615 }
            },
            {
                "index" : 121,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4615, "maximum" : 0.4872 }
            },
            {
                "index" : 122,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4872, "maximum" : 0.5128 }
            },
            {
                "index" : 123,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5128, "maximum" : 0.5385 }
            },
            {
                "index" : 124,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5385, "maximum" : 0.5641 }
            },
            {
                "index" : 125,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5641, "maximum" : 0.5897 }
            },
            {
                "index" : 126,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5897, "maximum" : 0.6154 }
            },
            {
                "index" : 127,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6154, "maximum" : 0.6410 }
            },
            {
                "index" : 128,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6410, "maximum" : 0.6667 }
            },
            {
                "index" : 129,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6667, "maximum" : 0.6923 }
            },
            {
                "index" : 130,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6923, "maximum" : 0.7179 }
            },
            {
                "index" : 131,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7179, "maximum" : 0.7436 }
            },
            {
                "index" : 132,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7436, "maximum" : 0.7692 }
            },
            {
                "index" : 133,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7692, "maximum" : 0.7949 }
            },
            {
                "index" : 134,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7949, "maximum" : 0.8205 }
            },
            {
                "index" : 135,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8205, "maximum" : 0.8462 }
            },
            {
                "index" : 136,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8462, "maximum" : 0.8718 }
            },
            {
                "index" : 137,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8718, "maximum" : 0.8974 }
            },
            {
                "index" : 138,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8974, "maximum" : 0.9231 }
            },
            {
                "index" : 139,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9231, "maximum" : 0.9487 }
            },
            {
                "index" : 140,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9487, "maximum" : 0.9744 }
            },
            {
                "index" : 141,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9744, "maximum" : 1.0000 }
            },
            {
                "index" : 142,
                "hscan" : { "minimum" : 0.9844, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 143,
                "hscan" : { "minimum" : 0.9688, "maximum" : 0.9844 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 144,
                "hscan" : { "minimum" : 0.9531, "maximum" : 0.9688 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 145,
                "hscan" : { "minimum" : 0.9375, "maximum" : 0.9531 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 146,
                "hscan" : { "minimum" : 0.9219, "maximum" : 0.9375 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 147,
                "hscan" : { "minimum" : 0.9063, "maximum" : 0.9219 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 148,
                "hscan" : { "minimum" : 0.8906, "maximum" : 0.9063 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 149,
                "hscan" : { "minimum" : 0.8750, "maximum" : 0.8906 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 150,
                "hscan" : { "minimum" : 0.8594, "maximum" : 0.8750 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 151,
                "hscan" : { "minimum" : 0.8438, "maximum" : 0.8594 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 152,
                "hscan" : { "minimum" : 0.8281, "maximum" : 0.8438 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 153,
                "hscan" : { "minimum" : 0.8125, "maximum" : 0.8281 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 154,
                "hscan" : { "minimum" : 0.7969, "maximum" : 0.8125 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 155,
                "hscan" : { "minimum" : 0.7813, "maximum" : 0.7969 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 156,
                "hscan" : { "minimum" : 0.7656, "maximum" : 0.7813 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 157,
                "hscan" : { "minimum" : 0.7500, "maximum" : 0.7656 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 158,
                "hscan" : { "minimum" : 0.7344, "maximum" : 0.7500 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 159,
                "hscan" : { "minimum" : 0.7188, "maximum" : 0.7344 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 160,
                "hscan" : { "minimum" : 0.7031, "maximum" : 0.7188 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 161,
                "hscan" : { "minimum" : 0.6875, "maximum" : 0.7031 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 162,
                "hscan" : { "minimum" : 0.6719, "maximum" : 0.6875 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 163,
                "hscan" : { "minimum" : 0.6563, "maximum" : 0.6719 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 164,
                "hscan" : { "minimum" : 0.6406, "maximum" : 0.6563 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 165,
                "hscan" : { "minimum" : 0.6250, "maximum" : 0.6406 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 166,
                "hscan" : { "minimum" : 0.6094, "maximum" : 0.6250 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 167,
                "hscan" : { "minimum" : 0.5938, "maximum" : 0.6094 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 168,
                "hscan" : { "minimum" : 0.5781, "maximum" : 0.5938 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 169,
                "hscan" : { "minimum" : 0.5625, "maximum" : 0.5781 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 170,
                "hscan" : { "minimum" : 0.5469, "maximum" : 0.5625 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 171,
                "hscan" : { "minimum" : 0.5313, "maximum" : 0.5469 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 172,
                "hscan" : { "minimum" : 0.5156, "maximum" : 0.5313 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 173,
                "hscan" : { "minimum" : 0.5000, "maximum" : 0.5156 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 174,
                "hscan" : { "minimum" : 0.4844, "maximum" : 0.5000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 175,
                "hscan" : { "minimum" : 0.4688, "maximum" : 0.4844 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 176,
                "hscan" : { "minimum" : 0.4531, "maximum" : 0.4688 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 177,
                "hscan" : { "minimum" : 0.4375, "maximum" : 0.4531 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 178,
                "hscan" : { "minimum" : 0.4219, "maximum" : 0.4375 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 179,
                "hscan" : { "minimum" : 0.4063, "maximum" : 0.4219 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 180,
                "hscan" : { "minimum" : 0.3906, "maximum" : 0.4063 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 181,
                "hscan" : { "minimum" : 0.3750, "maximum" : 0.3906 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 182,
                "hscan" : { "minimum" : 0.3594, "maximum" : 0.3750 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 183,
                "hscan" : { "minimum" : 0.3438, "maximum" : 0.3594 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 184,
                "hscan" : { "minimum" : 0.3281, "maximum" : 0.3438 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 185,
                "hscan" : { "minimum" : 0.3125, "maximum" : 0.3281 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 186,
                "hscan" : { "minimum" : 0.2969, "maximum" : 0.3125 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 187,
                "hscan" : { "minimum" : 0.2813, "maximum" : 0.2969 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 188,
                "hscan" : { "minimum" : 0.2656, "maximum" : 0.2813 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 189,
                "hscan" : { "minimum" : 0.2500, "maximum" : 0.2656 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 190,
                "hscan" : { "minimum" : 0.2344, "maximum" : 0.2500 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 191,
                "hscan" : { "minimum" : 0.2188, "maximum" : 0.2344 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 192,
                "hscan" : { "minimum" : 0.2031, "maximum" : 0.2188 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 193,
                "hscan" : { "minimum" : 0.1875, "maximum" : 0.2031 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 194,
                "hscan" : { "minimum" : 0.1719, "maximum" : 0.1875 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 195,
                "hscan" : { "minimum" : 0.1563, "maximum" : 0.1719 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 196,
                "hscan" : { "minimum" : 0.1406, "maximum" : 0.1563 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 197,
                "hscan" : { "minimum" : 0.1250, "maximum" : 0.1406 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 198,
                "hscan" : { "minimum" : 0.1094, "maximum" : 0.1250 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 199,
                "hscan" : { "minimum" : 0.0938, "maximum" : 0.1094 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 200,
                "hscan" : { "minimum" : 0.0781, "maximum" : 0.0938 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 201,
                "hscan" : { "minimum" : 0.0625, "maximum" : 0.0781 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 202,
                "hscan" : { "minimum" : 0.0469, "maximum" : 0.0625 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 203,
                "hscan" : { "minimum" : 0.0313, "maximum" : 0.0469 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 204,
                "hscan" : { "minimum" : 0.0156, "maximum" : 0.0313 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 205,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0156 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            }
        ],
    
        "endOfJson" : "endOfJson"
    }
    and my sketch looks like this :
    Code:
    #include "FastLED.h"
    
    // How many leds in your strip?
    #define NUM_LEDS 206
    
    // For led chips like Neopixels, which have a data line, ground, and power, you just
    // need to define DATA_PIN.  For led chipsets that are SPI based (four wires - data, clock,
    // ground, and power), like the LPD8806 define both DATA_PIN and CLOCK_PIN
    #define DATA_PIN 6
    #define CLOCK_PIN 13
    
    #define COLOR_ORDER RGB
    
    // Adalight sends a "Magic Word" (defined in /etc/boblight.conf) before sending the pixel data
    uint8_t prefix[] = {'A', 'd', 'a'}, hi, lo, chk, i;
    
    // Baudrate, higher rate allows faster refresh rate and more LEDs (defined in /etc/boblight.conf)
    #define serialRate 460800
    
    // Define the array of leds
    CRGB leds[NUM_LEDS];
    
    void setup() {
          // Uncomment/edit one of the following lines for your leds arrangement.
          // FastLED.addLeds<TM1803, DATA_PIN, RGB>(leds, NUM_LEDS);
          // FastLED.addLeds<TM1804, DATA_PIN, RGB>(leds, NUM_LEDS);
          // FastLED.addLeds<TM1809, DATA_PIN, RGB>(leds, NUM_LEDS);
          // FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, NUM_LEDS);
          // FastLED.addLeds<WS2812, DATA_PIN, RGB>(leds, NUM_LEDS);
             FastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS);
          // FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
          // FastLED.addLeds<UCS1903, DATA_PIN, RGB>(leds, NUM_LEDS);
          // FastLED.addLeds<UCS1903B, DATA_PIN, RGB>(leds, NUM_LEDS);
          // FastLED.addLeds<GW6205, DATA_PIN, RGB>(leds, NUM_LEDS);
          // FastLED.addLeds<GW6205_400, DATA_PIN, RGB>(leds, NUM_LEDS);
       
          // FastLED.addLeds<WS2801, RGB>(leds, NUM_LEDS);
          // FastLED.addLeds<SM16716, RGB>(leds, NUM_LEDS);
          // FastLED.addLeds<LPD8806, RGB>(leds, NUM_LEDS);
    
          // FastLED.addLeds<WS2801, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
          // FastLED.addLeds<SM16716, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
          // FastLED.addLeds<LPD8806, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
       
            // initial RGB flash
            LEDS.showColor(CRGB(255, 0, 0));
            delay(500);
            LEDS.showColor(CRGB(0, 255, 0));
            delay(500);
            LEDS.showColor(CRGB(0, 0, 255));
            delay(500);
            LEDS.showColor(CRGB(0, 0, 0));
         
            Serial.begin(serialRate);
            Serial.print("Ada\n"); // Send "Magic Word" string to host
    
    }
    
    void loop() {
      // wait for first byte of Magic Word
      for(i = 0; i < sizeof prefix; ++i) {
        waitLoop: while (!Serial.available()) ;;
        // Check next byte in Magic Word
        if(prefix[i] == Serial.read()) continue;
        // otherwise, start over
        i = 0;
        goto waitLoop;
      }
    
      // Hi, Lo, Checksum
    
      while (!Serial.available()) ;;
      hi=Serial.read();
      while (!Serial.available()) ;;
      lo=Serial.read();
      while (!Serial.available()) ;;
      chk=Serial.read();
    
      // if checksum does not match go back to wait
      if (chk != (hi ^ lo ^ 0x55))
      {
        i=0;
        goto waitLoop;
      }
    
      memset(leds, 0, NUM_LEDS * sizeof(struct CRGB));
      // read the transmission data and set LED values
      for (uint8_t i = 0; i < NUM_LEDS; i++) {
        byte r, g, b;  
        while(!Serial.available());
        r = Serial.read();
        while(!Serial.available());
        g = Serial.read();
        while(!Serial.available());
        b = Serial.read();
        leds[i].r = r;
        leds[i].g = g;
        leds[i].b = b;
      }
      // shows new values
    FastLED.show();
    }
    I hope this helps someone sometime... ;-)
    Thanks for hyperion, it looks marvelous!!

    Regards,
    Jerry
     
    Last edited: 15 April 2017
    • Thank you Thank you x 1