title: Error compiling for board Arduino/Genuino Mega or Mega 2560 with FastLED library
body: <p>I started a 3d project of <a href="https://cults3d.com/fr/mod%C3%A8le-3d/maison/la-lampe-pixel-animee#comments" rel="nofollow noreferrer">pixel lamp by Heliox (cults3d link)</a>, <a href="https://www.youtube.com/watch?v=94nbqv7Jhlo" rel="nofollow noreferrer">french youtube video of the project</a> and I am having compilation problems and I am a beginner.<br>
  I have downloaded the FastLED library and have the file <code>pixellamp.h</code>
  Also here is the <a href="https://drive.google.com/file/d/1V1oVRu5Qm_7Lyr85kFy6UF3OYe4PQe78/view" rel="nofollow noreferrer">link</a> to the original code folder given by the project creator
  The error may be because I need to update Arduino IDE.
  Ask me anything if their needs more information.</p>
  
  <p>Thanks for any help</p>
  
  <p>PS: I have already sent a message to the creator of the project and waiting for a response</p>
  
  <pre><code>
  In file included from C:\Users\Mael\Documents\Arduino\Lampe\Pixelamp\pixelamp\pixelamp.ino:7:0:
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.003.003
  
   #    pragma message "FastLED version 3.003.003"
  
                       ^
  
  In file included from C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/fastled_avr.h:6:0,
  
                   from C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms.h:39,
  
                   from C:\Users\Mael\Documents\Arduino\libraries\FastLED/FastLED.h:52,
  
                   from C:\Users\Mael\Documents\Arduino\Lampe\Pixelamp\pixelamp\pixelamp.ino:7:
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h: In static member function 'static void ClocklessController&lt;DATA_PIN, T1, T2, T3, RGB_ORDER, XTRA0, FLIP, WAIT_TIME&gt;::showRGBInternal(PixelController&lt;RGB_ORDER&gt;&amp;)':
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
  
   #define FL_FALLTHROUGH __attribute__ ((fallthrough));
  
                          ^
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:409:55: note: in expansion of macro 'FL_FALLTHROUGH'
  
        case 4: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0)  FL_FALLTHROUGH
  
                                                         ^
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
  
   #define FL_FALLTHROUGH __attribute__ ((fallthrough));
  
                          ^
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:410:55: note: in expansion of macro 'FL_FALLTHROUGH'
  
        case 3: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0)  FL_FALLTHROUGH
  
                                                         ^
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
  
   #define FL_FALLTHROUGH __attribute__ ((fallthrough));
  
                          ^
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:411:55: note: in expansion of macro 'FL_FALLTHROUGH'
  
        case 2: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0)  FL_FALLTHROUGH
  
                                                         ^
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
  
   #define FL_FALLTHROUGH __attribute__ ((fallthrough));
  
                          ^
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:425:55: note: in expansion of macro 'FL_FALLTHROUGH'
  
        case 4: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0)  FL_FALLTHROUGH
  
                                                         ^
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
  
   #define FL_FALLTHROUGH __attribute__ ((fallthrough));
  
                          ^
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:426:55: note: in expansion of macro 'FL_FALLTHROUGH'
  
        case 3: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0)  FL_FALLTHROUGH
  
                                                         ^
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
  
   #define FL_FALLTHROUGH __attribute__ ((fallthrough));
  
                          ^
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:427:55: note: in expansion of macro 'FL_FALLTHROUGH'
  
        case 2: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0)  FL_FALLTHROUGH
  
                                                         ^
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
  
   #define FL_FALLTHROUGH __attribute__ ((fallthrough));
  
                          ^
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:444:55: note: in expansion of macro 'FL_FALLTHROUGH'
  
        case 4: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0)  FL_FALLTHROUGH
  
                                                         ^
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
  
   #define FL_FALLTHROUGH __attribute__ ((fallthrough));
  
                          ^
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:445:55: note: in expansion of macro 'FL_FALLTHROUGH'
  
        case 3: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0)  FL_FALLTHROUGH
  
                                                         ^
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
  
   #define FL_FALLTHROUGH __attribute__ ((fallthrough));
  
                          ^
  
  C:\Users\Mael\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:446:55: note: in expansion of macro 'FL_FALLTHROUGH'
  
        case 2: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0)  FL_FALLTHROUGH
  
                                                         ^
  
  exit status 1
  Error compiling for board Arduino/Genuino Mega or Mega 2560.
  
  This report would have more information with
  "Show verbose output during compilation"
  option enabled in File -&gt; Preferences.
  </code></pre>