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

RPi + LibreELEC Correct Arduino Sketch for 300 pixel WS2812B LED strip

Discussion in 'Software Support' started by jjintn, 8 August 2017.

  1. jjintn

    jjintn New Member

    Messages:
    3
    Hardware:
    RPi3, +Arduino
    Hi all, first post. I followed the official DIY guide here:
    [DIY] Amblight project/guide - Hyperion - WS2801/ WS2812B / APA102

    I got everything working for the most part using the example adalight_ws2812b sketch from the guide (see below). The problem is I'm using a 300 led strip, but when I set #define NUM_LEDS to anything greater than 240 I get no output other than the initial RGB flash when starting powering up the arduino. Leaving it at 240 or any number below works up to the number of led's defined. I've tried several other sketches, but no luck. Hoping someone can point em in the right direction.

    Thanks!



    Code:
    #include "FastLED.h"
    
    // How many leds in your strip?
    #define NUM_LEDS 240
    
    // 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 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();
    }
    Hyperion Config (trying to use 284 of the 300 leds on the WS2812B Strip)
    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"       : "JJConfig",
            "type"       : "adalight",
            "output"     : "/dev/ttyACM0",
            "rate"     : 460800,
            "delayAfterConnect"     : 0,
            "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
                    }
                }
            ]
        // NO SMOOTHING CONFIG
        },
    
        // 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" : "Blue mood blobs",
            "duration_ms" : 3000,
            "priority" : 700
        },
    
        // JSON SERVER CONFIG
        "jsonServer" :
        {
            "port" : 19444
        },
    
        // PROTO SERVER CONFIG
        "protoServer" :
        {
            "port" : 19445
        },
    
        // EFFECT PATH
        "effects" :
        {
            "paths" :
            [
                "/storage/hyperion/effects",
                "/usr/share/hyperion/effects"
            ]
        },
    
        // NO KODI CHECK CONFIG
        // NO BOBLIGHT SERVER CONFIG
        // NO JSON/PROTO FORWARD CONFIG
    
        // LED CONFIGURATION
        "leds" :
        [
            {
                "index" : 0,
                "hscan" : { "minimum" : 0.3778, "maximum" : 0.3889 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 1,
                "hscan" : { "minimum" : 0.3667, "maximum" : 0.3778 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 2,
                "hscan" : { "minimum" : 0.3556, "maximum" : 0.3667 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 3,
                "hscan" : { "minimum" : 0.3444, "maximum" : 0.3556 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 4,
                "hscan" : { "minimum" : 0.3333, "maximum" : 0.3444 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 5,
                "hscan" : { "minimum" : 0.3222, "maximum" : 0.3333 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 6,
                "hscan" : { "minimum" : 0.3111, "maximum" : 0.3222 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 7,
                "hscan" : { "minimum" : 0.3000, "maximum" : 0.3111 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 8,
                "hscan" : { "minimum" : 0.2889, "maximum" : 0.3000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 9,
                "hscan" : { "minimum" : 0.2778, "maximum" : 0.2889 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 10,
                "hscan" : { "minimum" : 0.2667, "maximum" : 0.2778 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 11,
                "hscan" : { "minimum" : 0.2556, "maximum" : 0.2667 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 12,
                "hscan" : { "minimum" : 0.2444, "maximum" : 0.2556 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 13,
                "hscan" : { "minimum" : 0.2333, "maximum" : 0.2444 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 14,
                "hscan" : { "minimum" : 0.2222, "maximum" : 0.2333 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 15,
                "hscan" : { "minimum" : 0.2111, "maximum" : 0.2222 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 16,
                "hscan" : { "minimum" : 0.2000, "maximum" : 0.2111 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 17,
                "hscan" : { "minimum" : 0.1889, "maximum" : 0.2000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 18,
                "hscan" : { "minimum" : 0.1778, "maximum" : 0.1889 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 19,
                "hscan" : { "minimum" : 0.1667, "maximum" : 0.1778 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 20,
                "hscan" : { "minimum" : 0.1556, "maximum" : 0.1667 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 21,
                "hscan" : { "minimum" : 0.1444, "maximum" : 0.1556 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 22,
                "hscan" : { "minimum" : 0.1333, "maximum" : 0.1444 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 23,
                "hscan" : { "minimum" : 0.1222, "maximum" : 0.1333 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 24,
                "hscan" : { "minimum" : 0.1111, "maximum" : 0.1222 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 25,
                "hscan" : { "minimum" : 0.1000, "maximum" : 0.1111 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 26,
                "hscan" : { "minimum" : 0.0889, "maximum" : 0.1000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 27,
                "hscan" : { "minimum" : 0.0778, "maximum" : 0.0889 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 28,
                "hscan" : { "minimum" : 0.0667, "maximum" : 0.0778 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 29,
                "hscan" : { "minimum" : 0.0556, "maximum" : 0.0667 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 30,
                "hscan" : { "minimum" : 0.0444, "maximum" : 0.0556 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 31,
                "hscan" : { "minimum" : 0.0333, "maximum" : 0.0444 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 32,
                "hscan" : { "minimum" : 0.0222, "maximum" : 0.0333 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 33,
                "hscan" : { "minimum" : 0.0111, "maximum" : 0.0222 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 34,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0111 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 35,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 36,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.9800, "maximum" : 1.0000 }
            },
            {
                "index" : 37,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.9600, "maximum" : 0.9800 }
            },
            {
                "index" : 38,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.9400, "maximum" : 0.9600 }
            },
            {
                "index" : 39,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 0.9400 }
            },
            {
                "index" : 40,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.9000, "maximum" : 0.9200 }
            },
            {
                "index" : 41,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.8800, "maximum" : 0.9000 }
            },
            {
                "index" : 42,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.8600, "maximum" : 0.8800 }
            },
            {
                "index" : 43,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.8400, "maximum" : 0.8600 }
            },
            {
                "index" : 44,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.8200, "maximum" : 0.8400 }
            },
            {
                "index" : 45,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.8000, "maximum" : 0.8200 }
            },
            {
                "index" : 46,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.7800, "maximum" : 0.8000 }
            },
            {
                "index" : 47,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.7600, "maximum" : 0.7800 }
            },
            {
                "index" : 48,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.7400, "maximum" : 0.7600 }
            },
            {
                "index" : 49,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.7200, "maximum" : 0.7400 }
            },
            {
                "index" : 50,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.7000, "maximum" : 0.7200 }
            },
            {
                "index" : 51,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.6800, "maximum" : 0.7000 }
            },
            {
                "index" : 52,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.6600, "maximum" : 0.6800 }
            },
            {
                "index" : 53,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.6400, "maximum" : 0.6600 }
            },
            {
                "index" : 54,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.6200, "maximum" : 0.6400 }
            },
            {
                "index" : 55,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.6000, "maximum" : 0.6200 }
            },
            {
                "index" : 56,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.5800, "maximum" : 0.6000 }
            },
            {
                "index" : 57,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.5600, "maximum" : 0.5800 }
            },
            {
                "index" : 58,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.5400, "maximum" : 0.5600 }
            },
            {
                "index" : 59,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.5200, "maximum" : 0.5400 }
            },
            {
                "index" : 60,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.5000, "maximum" : 0.5200 }
            },
            {
                "index" : 61,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.4800, "maximum" : 0.5000 }
            },
            {
                "index" : 62,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.4600, "maximum" : 0.4800 }
            },
            {
                "index" : 63,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.4400, "maximum" : 0.4600 }
            },
            {
                "index" : 64,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.4200, "maximum" : 0.4400 }
            },
            {
                "index" : 65,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.4000, "maximum" : 0.4200 }
            },
            {
                "index" : 66,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.3800, "maximum" : 0.4000 }
            },
            {
                "index" : 67,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.3600, "maximum" : 0.3800 }
            },
            {
                "index" : 68,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.3400, "maximum" : 0.3600 }
            },
            {
                "index" : 69,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.3200, "maximum" : 0.3400 }
            },
            {
                "index" : 70,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.3000, "maximum" : 0.3200 }
            },
            {
                "index" : 71,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.2800, "maximum" : 0.3000 }
            },
            {
                "index" : 72,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.2600, "maximum" : 0.2800 }
            },
            {
                "index" : 73,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.2400, "maximum" : 0.2600 }
            },
            {
                "index" : 74,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.2200, "maximum" : 0.2400 }
            },
            {
                "index" : 75,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.2000, "maximum" : 0.2200 }
            },
            {
                "index" : 76,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.1800, "maximum" : 0.2000 }
            },
            {
                "index" : 77,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.1600, "maximum" : 0.1800 }
            },
            {
                "index" : 78,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.1400, "maximum" : 0.1600 }
            },
            {
                "index" : 79,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.1200, "maximum" : 0.1400 }
            },
            {
                "index" : 80,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.1000, "maximum" : 0.1200 }
            },
            {
                "index" : 81,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.0800, "maximum" : 0.1000 }
            },
            {
                "index" : 82,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.0600, "maximum" : 0.0800 }
            },
            {
                "index" : 83,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.0400, "maximum" : 0.0600 }
            },
            {
                "index" : 84,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.0200, "maximum" : 0.0400 }
            },
            {
                "index" : 85,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0200 }
            },
            {
                "index" : 86,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 87,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0111 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 88,
                "hscan" : { "minimum" : 0.0111, "maximum" : 0.0222 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 89,
                "hscan" : { "minimum" : 0.0222, "maximum" : 0.0333 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 90,
                "hscan" : { "minimum" : 0.0333, "maximum" : 0.0444 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 91,
                "hscan" : { "minimum" : 0.0444, "maximum" : 0.0556 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 92,
                "hscan" : { "minimum" : 0.0556, "maximum" : 0.0667 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 93,
                "hscan" : { "minimum" : 0.0667, "maximum" : 0.0778 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 94,
                "hscan" : { "minimum" : 0.0778, "maximum" : 0.0889 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 95,
                "hscan" : { "minimum" : 0.0889, "maximum" : 0.1000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 96,
                "hscan" : { "minimum" : 0.1000, "maximum" : 0.1111 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 97,
                "hscan" : { "minimum" : 0.1111, "maximum" : 0.1222 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 98,
                "hscan" : { "minimum" : 0.1222, "maximum" : 0.1333 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 99,
                "hscan" : { "minimum" : 0.1333, "maximum" : 0.1444 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 100,
                "hscan" : { "minimum" : 0.1444, "maximum" : 0.1556 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 101,
                "hscan" : { "minimum" : 0.1556, "maximum" : 0.1667 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 102,
                "hscan" : { "minimum" : 0.1667, "maximum" : 0.1778 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 103,
                "hscan" : { "minimum" : 0.1778, "maximum" : 0.1889 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 104,
                "hscan" : { "minimum" : 0.1889, "maximum" : 0.2000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 105,
                "hscan" : { "minimum" : 0.2000, "maximum" : 0.2111 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 106,
                "hscan" : { "minimum" : 0.2111, "maximum" : 0.2222 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 107,
                "hscan" : { "minimum" : 0.2222, "maximum" : 0.2333 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 108,
                "hscan" : { "minimum" : 0.2333, "maximum" : 0.2444 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 109,
                "hscan" : { "minimum" : 0.2444, "maximum" : 0.2556 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 110,
                "hscan" : { "minimum" : 0.2556, "maximum" : 0.2667 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 111,
                "hscan" : { "minimum" : 0.2667, "maximum" : 0.2778 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 112,
                "hscan" : { "minimum" : 0.2778, "maximum" : 0.2889 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 113,
                "hscan" : { "minimum" : 0.2889, "maximum" : 0.3000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 114,
                "hscan" : { "minimum" : 0.3000, "maximum" : 0.3111 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 115,
                "hscan" : { "minimum" : 0.3111, "maximum" : 0.3222 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 116,
                "hscan" : { "minimum" : 0.3222, "maximum" : 0.3333 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 117,
                "hscan" : { "minimum" : 0.3333, "maximum" : 0.3444 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 118,
                "hscan" : { "minimum" : 0.3444, "maximum" : 0.3556 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 119,
                "hscan" : { "minimum" : 0.3556, "maximum" : 0.3667 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 120,
                "hscan" : { "minimum" : 0.3667, "maximum" : 0.3778 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 121,
                "hscan" : { "minimum" : 0.3778, "maximum" : 0.3889 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 122,
                "hscan" : { "minimum" : 0.3889, "maximum" : 0.4000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 123,
                "hscan" : { "minimum" : 0.4000, "maximum" : 0.4111 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 124,
                "hscan" : { "minimum" : 0.4111, "maximum" : 0.4222 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 125,
                "hscan" : { "minimum" : 0.4222, "maximum" : 0.4333 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 126,
                "hscan" : { "minimum" : 0.4333, "maximum" : 0.4444 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 127,
                "hscan" : { "minimum" : 0.4444, "maximum" : 0.4556 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 128,
                "hscan" : { "minimum" : 0.4556, "maximum" : 0.4667 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 129,
                "hscan" : { "minimum" : 0.4667, "maximum" : 0.4778 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 130,
                "hscan" : { "minimum" : 0.4778, "maximum" : 0.4889 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 131,
                "hscan" : { "minimum" : 0.4889, "maximum" : 0.5000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 132,
                "hscan" : { "minimum" : 0.5000, "maximum" : 0.5111 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 133,
                "hscan" : { "minimum" : 0.5111, "maximum" : 0.5222 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 134,
                "hscan" : { "minimum" : 0.5222, "maximum" : 0.5333 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 135,
                "hscan" : { "minimum" : 0.5333, "maximum" : 0.5444 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 136,
                "hscan" : { "minimum" : 0.5444, "maximum" : 0.5556 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 137,
                "hscan" : { "minimum" : 0.5556, "maximum" : 0.5667 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 138,
                "hscan" : { "minimum" : 0.5667, "maximum" : 0.5778 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 139,
                "hscan" : { "minimum" : 0.5778, "maximum" : 0.5889 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 140,
                "hscan" : { "minimum" : 0.5889, "maximum" : 0.6000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 141,
                "hscan" : { "minimum" : 0.6000, "maximum" : 0.6111 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 142,
                "hscan" : { "minimum" : 0.6111, "maximum" : 0.6222 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 143,
                "hscan" : { "minimum" : 0.6222, "maximum" : 0.6333 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 144,
                "hscan" : { "minimum" : 0.6333, "maximum" : 0.6444 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 145,
                "hscan" : { "minimum" : 0.6444, "maximum" : 0.6556 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 146,
                "hscan" : { "minimum" : 0.6556, "maximum" : 0.6667 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 147,
                "hscan" : { "minimum" : 0.6667, "maximum" : 0.6778 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 148,
                "hscan" : { "minimum" : 0.6778, "maximum" : 0.6889 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 149,
                "hscan" : { "minimum" : 0.6889, "maximum" : 0.7000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 150,
                "hscan" : { "minimum" : 0.7000, "maximum" : 0.7111 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 151,
                "hscan" : { "minimum" : 0.7111, "maximum" : 0.7222 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 152,
                "hscan" : { "minimum" : 0.7222, "maximum" : 0.7333 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 153,
                "hscan" : { "minimum" : 0.7333, "maximum" : 0.7444 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 154,
                "hscan" : { "minimum" : 0.7444, "maximum" : 0.7556 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 155,
                "hscan" : { "minimum" : 0.7556, "maximum" : 0.7667 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 156,
                "hscan" : { "minimum" : 0.7667, "maximum" : 0.7778 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 157,
                "hscan" : { "minimum" : 0.7778, "maximum" : 0.7889 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 158,
                "hscan" : { "minimum" : 0.7889, "maximum" : 0.8000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 159,
                "hscan" : { "minimum" : 0.8000, "maximum" : 0.8111 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 160,
                "hscan" : { "minimum" : 0.8111, "maximum" : 0.8222 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 161,
                "hscan" : { "minimum" : 0.8222, "maximum" : 0.8333 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 162,
                "hscan" : { "minimum" : 0.8333, "maximum" : 0.8444 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 163,
                "hscan" : { "minimum" : 0.8444, "maximum" : 0.8556 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 164,
                "hscan" : { "minimum" : 0.8556, "maximum" : 0.8667 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 165,
                "hscan" : { "minimum" : 0.8667, "maximum" : 0.8778 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 166,
                "hscan" : { "minimum" : 0.8778, "maximum" : 0.8889 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 167,
                "hscan" : { "minimum" : 0.8889, "maximum" : 0.9000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 168,
                "hscan" : { "minimum" : 0.9000, "maximum" : 0.9111 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 169,
                "hscan" : { "minimum" : 0.9111, "maximum" : 0.9222 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 170,
                "hscan" : { "minimum" : 0.9222, "maximum" : 0.9333 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 171,
                "hscan" : { "minimum" : 0.9333, "maximum" : 0.9444 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 172,
                "hscan" : { "minimum" : 0.9444, "maximum" : 0.9556 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 173,
                "hscan" : { "minimum" : 0.9556, "maximum" : 0.9667 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 174,
                "hscan" : { "minimum" : 0.9667, "maximum" : 0.9778 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 175,
                "hscan" : { "minimum" : 0.9778, "maximum" : 0.9889 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 176,
                "hscan" : { "minimum" : 0.9889, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 177,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 178,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0200 }
            },
            {
                "index" : 179,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0200, "maximum" : 0.0400 }
            },
            {
                "index" : 180,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0400, "maximum" : 0.0600 }
            },
            {
                "index" : 181,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0600, "maximum" : 0.0800 }
            },
            {
                "index" : 182,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0800, "maximum" : 0.1000 }
            },
            {
                "index" : 183,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1000, "maximum" : 0.1200 }
            },
            {
                "index" : 184,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1200, "maximum" : 0.1400 }
            },
            {
                "index" : 185,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1400, "maximum" : 0.1600 }
            },
            {
                "index" : 186,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1600, "maximum" : 0.1800 }
            },
            {
                "index" : 187,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1800, "maximum" : 0.2000 }
            },
            {
                "index" : 188,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2000, "maximum" : 0.2200 }
            },
            {
                "index" : 189,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2200, "maximum" : 0.2400 }
            },
            {
                "index" : 190,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2400, "maximum" : 0.2600 }
            },
            {
                "index" : 191,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2600, "maximum" : 0.2800 }
            },
            {
                "index" : 192,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2800, "maximum" : 0.3000 }
            },
            {
                "index" : 193,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3000, "maximum" : 0.3200 }
            },
            {
                "index" : 194,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3200, "maximum" : 0.3400 }
            },
            {
                "index" : 195,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3400, "maximum" : 0.3600 }
            },
            {
                "index" : 196,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3600, "maximum" : 0.3800 }
            },
            {
                "index" : 197,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3800, "maximum" : 0.4000 }
            },
            {
                "index" : 198,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4000, "maximum" : 0.4200 }
            },
            {
                "index" : 199,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4200, "maximum" : 0.4400 }
            },
            {
                "index" : 200,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4400, "maximum" : 0.4600 }
            },
            {
                "index" : 201,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4600, "maximum" : 0.4800 }
            },
            {
                "index" : 202,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4800, "maximum" : 0.5000 }
            },
            {
                "index" : 203,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5000, "maximum" : 0.5200 }
            },
            {
                "index" : 204,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5200, "maximum" : 0.5400 }
            },
            {
                "index" : 205,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5400, "maximum" : 0.5600 }
            },
            {
                "index" : 206,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5600, "maximum" : 0.5800 }
            },
            {
                "index" : 207,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5800, "maximum" : 0.6000 }
            },
            {
                "index" : 208,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6000, "maximum" : 0.6200 }
            },
            {
                "index" : 209,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6200, "maximum" : 0.6400 }
            },
            {
                "index" : 210,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6400, "maximum" : 0.6600 }
            },
            {
                "index" : 211,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6600, "maximum" : 0.6800 }
            },
            {
                "index" : 212,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6800, "maximum" : 0.7000 }
            },
            {
                "index" : 213,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7000, "maximum" : 0.7200 }
            },
            {
                "index" : 214,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7200, "maximum" : 0.7400 }
            },
            {
                "index" : 215,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7400, "maximum" : 0.7600 }
            },
            {
                "index" : 216,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7600, "maximum" : 0.7800 }
            },
            {
                "index" : 217,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7800, "maximum" : 0.8000 }
            },
            {
                "index" : 218,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8000, "maximum" : 0.8200 }
            },
            {
                "index" : 219,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8200, "maximum" : 0.8400 }
            },
            {
                "index" : 220,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8400, "maximum" : 0.8600 }
            },
            {
                "index" : 221,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8600, "maximum" : 0.8800 }
            },
            {
                "index" : 222,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8800, "maximum" : 0.9000 }
            },
            {
                "index" : 223,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9000, "maximum" : 0.9200 }
            },
            {
                "index" : 224,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 0.9400 }
            },
            {
                "index" : 225,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9400, "maximum" : 0.9600 }
            },
            {
                "index" : 226,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9600, "maximum" : 0.9800 }
            },
            {
                "index" : 227,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9800, "maximum" : 1.0000 }
            },
            {
                "index" : 228,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 229,
                "hscan" : { "minimum" : 0.9889, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 230,
                "hscan" : { "minimum" : 0.9778, "maximum" : 0.9889 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 231,
                "hscan" : { "minimum" : 0.9667, "maximum" : 0.9778 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 232,
                "hscan" : { "minimum" : 0.9556, "maximum" : 0.9667 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 233,
                "hscan" : { "minimum" : 0.9444, "maximum" : 0.9556 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 234,
                "hscan" : { "minimum" : 0.9333, "maximum" : 0.9444 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 235,
                "hscan" : { "minimum" : 0.9222, "maximum" : 0.9333 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 236,
                "hscan" : { "minimum" : 0.9111, "maximum" : 0.9222 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 237,
                "hscan" : { "minimum" : 0.9000, "maximum" : 0.9111 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 238,
                "hscan" : { "minimum" : 0.8889, "maximum" : 0.9000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 239,
                "hscan" : { "minimum" : 0.8778, "maximum" : 0.8889 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 240,
                "hscan" : { "minimum" : 0.8667, "maximum" : 0.8778 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 241,
                "hscan" : { "minimum" : 0.8556, "maximum" : 0.8667 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 242,
                "hscan" : { "minimum" : 0.8444, "maximum" : 0.8556 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 243,
                "hscan" : { "minimum" : 0.8333, "maximum" : 0.8444 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 244,
                "hscan" : { "minimum" : 0.8222, "maximum" : 0.8333 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 245,
                "hscan" : { "minimum" : 0.8111, "maximum" : 0.8222 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 246,
                "hscan" : { "minimum" : 0.8000, "maximum" : 0.8111 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 247,
                "hscan" : { "minimum" : 0.7889, "maximum" : 0.8000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 248,
                "hscan" : { "minimum" : 0.7778, "maximum" : 0.7889 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 249,
                "hscan" : { "minimum" : 0.7667, "maximum" : 0.7778 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 250,
                "hscan" : { "minimum" : 0.7556, "maximum" : 0.7667 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 251,
                "hscan" : { "minimum" : 0.7444, "maximum" : 0.7556 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 252,
                "hscan" : { "minimum" : 0.7333, "maximum" : 0.7444 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 253,
                "hscan" : { "minimum" : 0.7222, "maximum" : 0.7333 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 254,
                "hscan" : { "minimum" : 0.7111, "maximum" : 0.7222 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 255,
                "hscan" : { "minimum" : 0.7000, "maximum" : 0.7111 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 256,
                "hscan" : { "minimum" : 0.6889, "maximum" : 0.7000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 257,
                "hscan" : { "minimum" : 0.6778, "maximum" : 0.6889 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 258,
                "hscan" : { "minimum" : 0.6667, "maximum" : 0.6778 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 259,
                "hscan" : { "minimum" : 0.6556, "maximum" : 0.6667 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 260,
                "hscan" : { "minimum" : 0.6444, "maximum" : 0.6556 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 261,
                "hscan" : { "minimum" : 0.6333, "maximum" : 0.6444 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 262,
                "hscan" : { "minimum" : 0.6222, "maximum" : 0.6333 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 263,
                "hscan" : { "minimum" : 0.6111, "maximum" : 0.6222 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 264,
                "hscan" : { "minimum" : 0.6000, "maximum" : 0.6111 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 265,
                "hscan" : { "minimum" : 0.5889, "maximum" : 0.6000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 266,
                "hscan" : { "minimum" : 0.5778, "maximum" : 0.5889 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 267,
                "hscan" : { "minimum" : 0.5667, "maximum" : 0.5778 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 268,
                "hscan" : { "minimum" : 0.5556, "maximum" : 0.5667 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 269,
                "hscan" : { "minimum" : 0.5444, "maximum" : 0.5556 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 270,
                "hscan" : { "minimum" : 0.5333, "maximum" : 0.5444 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 271,
                "hscan" : { "minimum" : 0.5222, "maximum" : 0.5333 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 272,
                "hscan" : { "minimum" : 0.5111, "maximum" : 0.5222 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 273,
                "hscan" : { "minimum" : 0.5000, "maximum" : 0.5111 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 274,
                "hscan" : { "minimum" : 0.4889, "maximum" : 0.5000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 275,
                "hscan" : { "minimum" : 0.4778, "maximum" : 0.4889 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 276,
                "hscan" : { "minimum" : 0.4667, "maximum" : 0.4778 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 277,
                "hscan" : { "minimum" : 0.4556, "maximum" : 0.4667 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 278,
                "hscan" : { "minimum" : 0.4444, "maximum" : 0.4556 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 279,
                "hscan" : { "minimum" : 0.4333, "maximum" : 0.4444 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 280,
                "hscan" : { "minimum" : 0.4222, "maximum" : 0.4333 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 281,
                "hscan" : { "minimum" : 0.4111, "maximum" : 0.4222 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 282,
                "hscan" : { "minimum" : 0.4000, "maximum" : 0.4111 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 283,
                "hscan" : { "minimum" : 0.3889, "maximum" : 0.4000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            }
        ],
    
        "endOfJson" : "endOfJson"
    }
    
     
  2. penfold42

    penfold42 Moderator Developer

    Messages:
    747
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
  3. jjintn

    jjintn New Member

    Messages:
    3
    Hardware:
    RPi3, +Arduino
  4. jjintn

    jjintn New Member

    Messages:
    3
    Hardware:
    RPi3, +Arduino
    Btw, is there a way to define the starting led? what I mean is of the 300 leds on the strip have the first 16 not light as opposed to the last 16.
     
  5. penfold42

    penfold42 Moderator Developer

    Messages:
    747
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    From memory there was an 8 bit integer used to index through the serial data.

    You could modify the sketch to add 16 to the led index when it copied the data from serial to the led array

    Replace:
    leds[idx].r = r;

    With:
    leds[idx+16].r = r;

    Do the same with green and blue
     
  6. matthew henry

    matthew henry New Member

    Messages:
    12
    Hardware:
    RPi3