Jump to content

Kino

Members
  • Posts

    3
  • Joined

Posts posted by Kino

  1. That impies that FastLED is missing as a library. Mea culpa for not documenting the need for the HID-Project library in the readme file, but it definitely mentioned the need for the FastLED library. Use the same process for FastLED. Let me know if the library was already installed.

     

    I suppose if all else fails, I can package the libraries in the code, though that has upsides and downsides.

     

    Thank you again! FastLED is already installed but with old version 3.1.0.

    After i try to update with last version 3.1.6 and now work without error, later i will try to upload and test with fans. :biggrin:

  2. Hi Kino!

     

    In the Arduino IDE:

    Sketch Menu -> Include Library -> Manage Libraries

    Search for "HID" and one of the results will be HID-Project. Install that library in the IDE (Click on the library and an Install button should appear. Click that button when it does and follow any directions presented.)

     

    Hi, Thank you i found and added but now i have this error (i need to edit it or ?);

     

    Arduino:1.8.2 (Windows 10), Scheda:"Arduino Leonardo"
    
    HD120-Controller:136: error: 'CRGBArray' does not name a type
    
    CRGBArray<NUM_LEDS + 14>   leds;    // Operate on this array as if it had the correct layout.
    
    ^
    
    HD120-Controller:139: error: 'CRGBArray' does not name a type
    
    CRGBArray<STRIP_LEDS> stripLeds;  // Strips in order
    
    ^
    
    HD120-Controller:142: error: 'CRGBSet' does not name a type
    
    CRGBSet *fan[NumberOfFans];      // Fan Subset Array
    
    ^
    
    HD120-Controller:146: error: 'CRGBSet' does not name a type
    
    CRGBSet *strip[NumberOfStrips + 1];                 // Strips Array
    
    ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void mode0(uint8_t)':
    
    HD120-Controller:89: error: 'fan' was not declared in this scope
    
    #define EM_F                (*fan[thisFan])
    
                                  ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:173:3: note: in expansion of macro 'EM_F'
    
      EM_F = CHSV(beatsin8(rFS(thisFan, 7), rFS(thisFan, 1), rFS(thisFan, 2), 0, rFS(thisFan, 5)) + rFS(thisFan, 3), beatsin8(rFS(thisFan, 7), rFS(thisFan, 4), rFS(thisFan, 6), 0, rFS(thisFan, 5)), 255);
    
      ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void mode1(uint8_t)':
    
    HD120-Controller:89: error: 'fan' was not declared in this scope
    
    #define EM_F                (*fan[thisFan])
    
                                  ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:196:3: note: in expansion of macro 'EM_F'
    
      EM_F.fadeToBlackBy(rFS(thisFan, 6));
    
      ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void mode2(uint8_t)':
    
    HD120-Controller:89: error: 'fan' was not declared in this scope
    
    #define EM_F                (*fan[thisFan])
    
                                  ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:238:7: note: in expansion of macro 'EM_F'
    
          EM_F.fill_rainbow(beat8(rFS(thisFan, 7)) + rFS(thisFan, 3), rFS(thisFan, 2)); 
    
          ^
    
    HD120-Controller:89: error: 'fan' was not declared in this scope
    
    #define EM_F                (*fan[thisFan])
    
                                  ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:244:5: note: in expansion of macro 'EM_F'
    
        EM_F[random8(LedsPerFan)] += CRGB::White;
    
        ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void mode3(uint8_t)':
    
    HD120-Controller:89: error: 'fan' was not declared in this scope
    
    #define EM_F                (*fan[thisFan])
    
                                  ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:270:3: note: in expansion of macro 'EM_F'
    
      EM_F.fadeToBlackBy(rFS(thisFan, 6));
    
      ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void mode4(uint8_t)':
    
    HD120-Controller:89: error: 'fan' was not declared in this scope
    
    #define EM_F                (*fan[thisFan])
    
                                  ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:306:3: note: in expansion of macro 'EM_F'
    
      EM_F.fadeToBlackBy(rFS(thisFan, 6));
    
      ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void mode5(uint8_t)':
    
    HD120-Controller:89: error: 'fan' was not declared in this scope
    
    #define EM_F                (*fan[thisFan])
    
                                  ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:333:3: note: in expansion of macro 'EM_F'
    
      EM_F.fadeToBlackBy(rFS(thisFan, 6));
    
      ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void mode6(uint8_t)':
    
    HD120-Controller:89: error: 'fan' was not declared in this scope
    
    #define EM_F                (*fan[thisFan])
    
                                  ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:352:5: note: in expansion of macro 'EM_F'
    
        EM_F[i] = ColorFromPalette(palette, counter + (i * (rFS(thisFan, 1))), beat - counter + (i * rFS(thisFan, 2)));
    
        ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void mode7(uint8_t)':
    
    HD120-Controller:92: error: 'fan' was not declared in this scope
    
    #define EM_FE               (*fan[thisFan])((LedsPerFan / 2), LedsPerFan - 1)
    
                                  ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:369:7: note: in expansion of macro 'EM_FE'
    
          EM_FE = CHSV(hueb, 255, 255);
    
          ^
    
    HD120-Controller:91: error: 'fan' was not declared in this scope
    
    #define EM_FW               (*fan[thisFan])(0,(LedsPerFan / 2) - 1)
    
                                  ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:385:3: note: in expansion of macro 'EM_FW'
    
      EM_FW = CHSV(huea, 255, beat);
    
      ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void mode8(uint8_t)':
    
    HD120-Controller:94: error: 'fan' was not declared in this scope
    
    #define EM_FNW              (*fan[thisFan])(0,(LedsPerFan / 4) -1)
    
                                  ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:412:7: note: in expansion of macro 'EM_FNW'
    
          EM_FNW = CHSV(huea, 255, 255);
    
          ^
    
    HD120-Controller:94: error: 'fan' was not declared in this scope
    
    #define EM_FNW              (*fan[thisFan])(0,(LedsPerFan / 4) -1)
    
                                  ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:432:7: note: in expansion of macro 'EM_FNW'
    
          EM_FNW = CHSV(huea, 255, beat);
    
          ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void mode9(uint8_t)':
    
    HD120-Controller:89: error: 'fan' was not declared in this scope
    
    #define EM_F                (*fan[thisFan])
    
                                  ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:442:3: note: in expansion of macro 'EM_F'
    
      EM_F = CRGB(rFS(thisFan,1),rFS(thisFan,2),rFS(thisFan,3));
    
      ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void mode10(uint8_t)':
    
    HD120-Controller:89: error: 'fan' was not declared in this scope
    
    #define EM_F                (*fan[thisFan])
    
                                  ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:449:5: note: in expansion of macro 'EM_F'
    
        EM_F.fadeToBlackBy(rFS(thisFan, 1));
    
        ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void smode0(uint8_t)':
    
    HD120-Controller:83: error: 'strip' was not declared in this scope
    
      #define EM_S                (*strip[thisStrip])  // Addressing for strip modes that use thisStrip to grab the whole strip
    
                                    ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:465:3: note: in expansion of macro 'EM_S'
    
      EM_S = CHSV(beatsin8(rSS(thisStrip, 7), rSS(thisStrip, 1), rSS(thisStrip, 2), 0, rSS(thisStrip, 5)) + rSS(thisStrip, 3), beatsin8(rSS(thisStrip, 7), rSS(thisStrip, 3), rSS(thisStrip, 5), 0, rSS(thisStrip, 5)), 255);
    
      ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void smode1(uint8_t)':
    
    HD120-Controller:83: error: 'strip' was not declared in this scope
    
      #define EM_S                (*strip[thisStrip])  // Addressing for strip modes that use thisStrip to grab the whole strip
    
                                    ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:488:3: note: in expansion of macro 'EM_S'
    
      EM_S.fadeToBlackBy(rSS(thisStrip, 6));
    
      ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void smode2(uint8_t)':
    
    HD120-Controller:84: error: 'strip' was not declared in this scope
    
      #define EM_S1               (*strip[thisStrip])(0,(LedsPerStrip / 2) - 1)
    
                                    ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:511:7: note: in expansion of macro 'EM_S1'
    
          EM_S1 = CHSV(hueb, 255, 255);
    
          ^
    
    HD120-Controller:84: error: 'strip' was not declared in this scope
    
      #define EM_S1               (*strip[thisStrip])(0,(LedsPerStrip / 2) - 1)
    
                                    ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:527:3: note: in expansion of macro 'EM_S1'
    
      EM_S1 = CHSV(huea, 255, beat);
    
      ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void smode3(uint8_t)':
    
    HD120-Controller:83: error: 'strip' was not declared in this scope
    
      #define EM_S                (*strip[thisStrip])  // Addressing for strip modes that use thisStrip to grab the whole strip
    
                                    ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:539:7: note: in expansion of macro 'EM_S'
    
          EM_S.fill_rainbow(beat8(rSS(thisStrip, 7)) + rSS(thisStrip, 3), rSS(thisStrip, 2)); 
    
          ^
    
    HD120-Controller:545: error: 'strip' was not declared in this scope
    
        (*strip[thisStrip][0])[random8(LedsPerStrip)] += CRGB::White;
    
          ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void smode4(uint8_t)':
    
    HD120-Controller:557: error: 'strip' was not declared in this scope
    
        (*strip[thisStrip])[i] = ColorFromPalette(palette, counter + (i * rSS(thisStrip, 1)), beat - counter + (i * rSS(thisStrip, 2)));
    
          ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void smode5(uint8_t)':
    
    HD120-Controller:83: error: 'strip' was not declared in this scope
    
      #define EM_S                (*strip[thisStrip])  // Addressing for strip modes that use thisStrip to grab the whole strip
    
                                    ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:565:3: note: in expansion of macro 'EM_S'
    
      EM_S = CRGB(rSS(thisStrip,1),rSS(thisStrip,2),rSS(thisStrip,3));
    
      ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void smode6(uint8_t)':
    
    HD120-Controller:83: error: 'strip' was not declared in this scope
    
      #define EM_S                (*strip[thisStrip])  // Addressing for strip modes that use thisStrip to grab the whole strip
    
                                    ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:589:3: note: in expansion of macro 'EM_S'
    
      EM_S.fadeToBlackBy(rSS(thisStrip, 6));
    
      ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void smode7(uint8_t)':
    
    HD120-Controller:83: error: 'strip' was not declared in this scope
    
      #define EM_S                (*strip[thisStrip])  // Addressing for strip modes that use thisStrip to grab the whole strip
    
                                    ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:615:3: note: in expansion of macro 'EM_S'
    
      EM_S.fadeToBlackBy(rSS(thisStrip, 6));
    
      ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void smode8(uint8_t)':
    
    HD120-Controller:83: error: 'strip' was not declared in this scope
    
      #define EM_S                (*strip[thisStrip])  // Addressing for strip modes that use thisStrip to grab the whole strip
    
                                    ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:642:3: note: in expansion of macro 'EM_S'
    
      EM_S.fadeToBlackBy(rSS(thisStrip, 6));
    
      ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void gmode2()':
    
    HD120-Controller:89: error: 'fan' was not declared in this scope
    
    #define EM_F                (*fan[thisFan])
    
                                  ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino:684:3: note: in expansion of macro 'EM_F'
    
      EM_F = CRGB(rGS(3), rGS(4), rGS(5));
    
      ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void setup()':
    
    HD120-Controller:772: error: 'leds' was not declared in this scope
    
        FastLED.addLeds<LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS);
    
                                                         ^
    
    HD120-Controller:775: error: 'stripLeds' was not declared in this scope
    
        FastLED.addLeds<LED_TYPE, STRIP_PIN, COLOR_ORDER>(stripLeds, STRIP_LEDS);
    
                                                          ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void defineSets()':
    
    HD120-Controller:820: error: 'strip' was not declared in this scope
    
        strip[i] = new CRGBSet( stripLeds((i * LedsPerStrip), (((i + 1) * LedsPerStrip) - 1)));
    
        ^
    
    HD120-Controller:820: error: expected type-specifier before 'CRGBSet'
    
        strip[i] = new CRGBSet( stripLeds((i * LedsPerStrip), (((i + 1) * LedsPerStrip) - 1)));
    
                       ^
    
    HD120-Controller:829: error: 'fan' was not declared in this scope
    
        fan[thisFan] = new CRGBSet(leds(offset, offset + LedsPerFan - 1));
    
        ^
    
    HD120-Controller:829: error: expected type-specifier before 'CRGBSet'
    
        fan[thisFan] = new CRGBSet(leds(offset, offset + LedsPerFan - 1));
    
                           ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void remap()':
    
    HD120-Controller:854: error: 'leds' was not declared in this scope
    
        leds(NUM_LEDS, NUM_LEDS + LedsPerFan - 1) = leds(i, i + LedsPerFan -1);
    
                                                ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void demap()':
    
    HD120-Controller:863: error: 'leds' was not declared in this scope
    
        leds(NUM_LEDS, NUM_LEDS + LedsPerFan - 1) = leds(i, i + LedsPerFan -1);
    
                                                ^
    
    C:\Users\*\Desktop\HD120Controller\HD120-Controller\HD120-Controller.ino: In function 'void breakfast()':
    
    HD120-Controller:1091: error: 'strip' was not declared in this scope
    
              delete strip[i];
    
                     ^
    
    HD120-Controller:1092: error: expected type-specifier before 'CRGBSet'
    
              strip[i] = new CRGBSet( stripLeds((i * LedsPerStrip), (((i + 1) * LedsPerStrip) - 1)));
    
                             ^
    
    exit status 1
    'CRGBArray' does not name a type

     

    Thanks!

×
×
  • Create New...