Trouble controlling WS2812B LED Strip from this computer but not other

Hello all! I recently downloaded the FastLED library and set up my Arduino Uno with a single LED from a strip of WS2812B lights. I have the light externally powered with 5 V. When I try to upload an example sketch from the Example library, I get the following errors. However, when I used someone else's computer (where I had to download the Arduino IDE and FastLED library), I was able to upload with no problem.

Arduino: 1.8.11 (Windows Store 1.8.28.0) (Windows 10), Board: "Arduino/Genuino Uno"

In file included from C:\Users\maggi\AppData\Local\Temp\arduino_modified_sketch_549836\Blink.ino:1:0:

C:\Users\maggi\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\maggi\Documents\Arduino\libraries\FastLED/platforms/avr/fastled_avr.h:6:0,

                 from C:\Users\maggi\Documents\Arduino\libraries\FastLED/platforms.h:39,

                 from C:\Users\maggi\Documents\Arduino\libraries\FastLED/FastLED.h:52,

                 from C:\Users\maggi\AppData\Local\Temp\arduino_modified_sketch_549836\Blink.ino:1:

C:\Users\maggi\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h: In static member function 'static void ClocklessController<DATA_PIN, T1, T2, T3, RGB_ORDER, XTRA0, FLIP, WAIT_TIME>::showRGBInternal(PixelController<RGB_ORDER>&)':

C:\Users\maggi\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'

 #define FL_FALLTHROUGH __attribute__ ((fallthrough));

                        ^

C:\Users\maggi\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\maggi\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'

 #define FL_FALLTHROUGH __attribute__ ((fallthrough));

                        ^

C:\Users\maggi\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\maggi\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'

 #define FL_FALLTHROUGH __attribute__ ((fallthrough));

                        ^

C:\Users\maggi\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\maggi\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'

 #define FL_FALLTHROUGH __attribute__ ((fallthrough));

                        ^

C:\Users\maggi\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\maggi\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'

 #define FL_FALLTHROUGH __attribute__ ((fallthrough));

                        ^

C:\Users\maggi\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\maggi\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'

 #define FL_FALLTHROUGH __attribute__ ((fallthrough));

                        ^

C:\Users\maggi\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\maggi\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'

 #define FL_FALLTHROUGH __attribute__ ((fallthrough));

                        ^

C:\Users\maggi\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\maggi\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'

 #define FL_FALLTHROUGH __attribute__ ((fallthrough));

                        ^

C:\Users\maggi\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\maggi\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'

 #define FL_FALLTHROUGH __attribute__ ((fallthrough));

                        ^

C:\Users\maggi\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 Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I am unable to upload my sketch to the board with my computer.

Does anyone know why this is happening? Thanks very much in advance

Please do this:

  • (In the Arduino IDE) click File > Preferences
  • Check the box next to "Show verbose output during: > compilation
  • Click "OK"
  • Sketch > Verify/Compile
  • After the compilation fails you'll see a button on the right side of the orange bar "Copy error messages". Click that button.
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
  • Press "Ctrl + V". This will paste the compilation output between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.

If the length of the output exceeds the forum's 9000 character limit, save it in a .txt file and post it here as an attachment. If you click the "Reply" button you'll see the "Attachments and other options" link.

Here's what I get:

ErrorMessage.txt (20.4 KB)

The problem is you are using an outdated version of Arduino AVR Boards. Please do this:

  • Tools > Board > Boards Manager
  • Wait for the download to finish.
  • Click "Arduino AVR Boards".
  • Click the "Update" button.
  • Wait for the update to finish.
  • Click the "Close" button.

You should now be able to compile your sketch without errors.

Thanks so much!

You're welcome. I'm glad if I was able to be of assistance. Enjoy!
Per

@pert

i stumbled upon the very same issue (arduino IDE not used that often, trying to use same lib, ended up using same LED strip ref, which is google brought me here)

how did you find out in the output that the "Arduino AVR Boards" needed an update? (i find the output a bit cryptic)