For W2812B no any library is working with ATMEGA128 (i am using mega core arduino)

Hello...

I want to use W2812B led in my project. my microcontroller is ATMEGA128.
i am using arduino for code development. i tried all available library (FastLED, W2812FX, etc...) to operate W2812B LED but in arduino compiler i am getting error below.

exit status 1
Error compiling for board ATmega128.

Please help which library should i use to operate W2812B led using ATMEGA128 (mega core arduino).

Enable verbose messages option in the compiler and post the full text of the error message. Because of the protocol of these LEDs, the libraries use specific commands and work directly with the microcontroller ports, which means that you may not find a working library for the ATmega128.

Arduino: 1.8.16 (Windows 10), Board: "ATmega128, No bootloader, EEPROM retained, BOD 2.7V, LTO disabled, Internal 8 MHz"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\bharg\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\bharg\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\bharg\OneDrive\Documents\Arduino\libraries -fqbn=MegaCore:avr:128:bootloader=no_bootloader,eeprom=keep,BOD=2v7,LTO=Os,clock=8MHz_internal -vid-pid=0000_0000 -ide-version=10816 -build-path C:\Users\bharg\AppData\Local\Temp\arduino_build_364296 -warnings=none -build-cache C:\Users\bharg\AppData\Local\Temp\arduino_cache_219046 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\bharg\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\bharg\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avrdude.path=C:\Users\bharg\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino18 -prefs=runtime.tools.avrdude-6.3.0-arduino18.path=C:\Users\bharg\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino18 -prefs=runtime.tools.avr-gcc.path=C:\Users\bharg\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\bharg\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -verbose C:\Users\bharg\OneDrive\Documents\Arduino\libraries\FastLED\examples\Cylon\Cylon.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\bharg\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\bharg\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\bharg\OneDrive\Documents\Arduino\libraries -fqbn=MegaCore:avr:128:bootloader=no_bootloader,eeprom=keep,BOD=2v7,LTO=Os,clock=8MHz_internal -vid-pid=0000_0000 -ide-version=10816 -build-path C:\Users\bharg\AppData\Local\Temp\arduino_build_364296 -warnings=none -build-cache C:\Users\bharg\AppData\Local\Temp\arduino_cache_219046 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\bharg\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\bharg\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avrdude.path=C:\Users\bharg\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino18 -prefs=runtime.tools.avrdude-6.3.0-arduino18.path=C:\Users\bharg\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino18 -prefs=runtime.tools.avr-gcc.path=C:\Users\bharg\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\bharg\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -verbose C:\Users\bharg\OneDrive\Documents\Arduino\libraries\FastLED\examples\Cylon\Cylon.ino

Using board '128' from platform in folder: C:\Users\bharg\AppData\Local\Arduino15\packages\MegaCore\hardware\avr\2.1.3

Using core 'MCUdude_corefiles' from platform in folder: C:\Users\bharg\AppData\Local\Arduino15\packages\MegaCore\hardware\avr\2.1.3

Detecting libraries used...

"C:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega128 -DF_CPU=8000000L -DARDUINO=10816 -DARDUINO_AVR_ATmega128 -DARDUINO_ARCH_AVR "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\variants\\64-pin-avr" "C:\\Users\\bharg\\AppData\\Local\\Temp\\arduino_build_364296\\sketch\\Cylon.ino.cpp" -o nul

Alternatives for FastLED.h: [FastLED@3.4.0]

ResolveLibrary(FastLED.h)

  -> candidates: [FastLED@3.4.0]

"C:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega128 -DF_CPU=8000000L -DARDUINO=10816 -DARDUINO_AVR_ATmega128 -DARDUINO_ARCH_AVR "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\variants\\64-pin-avr" "-IC:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "C:\\Users\\bharg\\AppData\\Local\\Temp\\arduino_build_364296\\sketch\\Cylon.ino.cpp" -o nul

"C:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega128 -DF_CPU=8000000L -DARDUINO=10816 -DARDUINO_AVR_ATmega128 -DARDUINO_ARCH_AVR "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\variants\\64-pin-avr" "-IC:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "C:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\FastLED.cpp" -o nul

"C:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega128 -DF_CPU=8000000L -DARDUINO=10816 -DARDUINO_AVR_ATmega128 -DARDUINO_ARCH_AVR "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\variants\\64-pin-avr" "-IC:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "C:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\bitswap.cpp" -o nul

"C:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega128 -DF_CPU=8000000L -DARDUINO=10816 -DARDUINO_AVR_ATmega128 -DARDUINO_ARCH_AVR "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\variants\\64-pin-avr" "-IC:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "C:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\colorpalettes.cpp" -o nul

"C:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega128 -DF_CPU=8000000L -DARDUINO=10816 -DARDUINO_AVR_ATmega128 -DARDUINO_ARCH_AVR "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\variants\\64-pin-avr" "-IC:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "C:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\colorutils.cpp" -o nul

"C:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega128 -DF_CPU=8000000L -DARDUINO=10816 -DARDUINO_AVR_ATmega128 -DARDUINO_ARCH_AVR "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\variants\\64-pin-avr" "-IC:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "C:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\hsv2rgb.cpp" -o nul

"C:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega128 -DF_CPU=8000000L -DARDUINO=10816 -DARDUINO_AVR_ATmega128 -DARDUINO_ARCH_AVR "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\variants\\64-pin-avr" "-IC:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "C:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\lib8tion.cpp" -o nul

"C:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega128 -DF_CPU=8000000L -DARDUINO=10816 -DARDUINO_AVR_ATmega128 -DARDUINO_ARCH_AVR "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\variants\\64-pin-avr" "-IC:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "C:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\noise.cpp" -o nul

"C:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega128 -DF_CPU=8000000L -DARDUINO=10816 -DARDUINO_AVR_ATmega128 -DARDUINO_ARCH_AVR "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\variants\\64-pin-avr" "-IC:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "C:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\platforms\\esp\\32\\clockless_rmt_esp32.cpp" -o nul

"C:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega128 -DF_CPU=8000000L -DARDUINO=10816 -DARDUINO_AVR_ATmega128 -DARDUINO_ARCH_AVR "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\variants\\64-pin-avr" "-IC:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "C:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\platforms.cpp" -o nul

"C:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega128 -DF_CPU=8000000L -DARDUINO=10816 -DARDUINO_AVR_ATmega128 -DARDUINO_ARCH_AVR "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\variants\\64-pin-avr" "-IC:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "C:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\power_mgt.cpp" -o nul

"C:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega128 -DF_CPU=8000000L -DARDUINO=10816 -DARDUINO_AVR_ATmega128 -DARDUINO_ARCH_AVR "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\variants\\64-pin-avr" "-IC:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "C:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\wiring.cpp" -o nul

Generating function prototypes...

"C:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega128 -DF_CPU=8000000L -DARDUINO=10816 -DARDUINO_AVR_ATmega128 -DARDUINO_ARCH_AVR "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\variants\\64-pin-avr" "-IC:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "C:\\Users\\bharg\\AppData\\Local\\Temp\\arduino_build_364296\\sketch\\Cylon.ino.cpp" -o "C:\\Users\\bharg\\AppData\\Local\\Temp\\arduino_build_364296\\preproc\\ctags_target_for_gcc_minus_e.cpp"

"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\bharg\\AppData\\Local\\Temp\\arduino_build_364296\\preproc\\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega128 -DF_CPU=8000000L -DARDUINO=10816 -DARDUINO_AVR_ATmega128 -DARDUINO_ARCH_AVR "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\bharg\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.1.3\\variants\\64-pin-avr" "-IC:\\Users\\bharg\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "C:\\Users\\bharg\\AppData\\Local\\Temp\\arduino_build_364296\\sketch\\Cylon.ino.cpp" -o "C:\\Users\\bharg\\AppData\\Local\\Temp\\arduino_build_364296\\sketch\\Cylon.ino.cpp.o"

In file included from C:\Users\bharg\OneDrive\Documents\Arduino\libraries\FastLED\examples\Cylon\Cylon.ino:1:0:

C:\Users\bharg\OneDrive\Documents\Arduino\libraries\FastLED\src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000

 #    pragma message "FastLED version 3.004.000"

                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from C:\Users\bharg\OneDrive\Documents\Arduino\libraries\FastLED\src/FastLED.h:65:0,

                 from C:\Users\bharg\OneDrive\Documents\Arduino\libraries\FastLED\examples\Cylon\Cylon.ino:1:

C:\Users\bharg\OneDrive\Documents\Arduino\libraries\FastLED\src/fastspi.h:135:23: note: #pragma message: No hardware SPI pins defined.  All SPI access will default to bitbanged output

 #      pragma message "No hardware SPI pins defined.  All SPI access will default to bitbanged output"

                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from C:\Users\bharg\OneDrive\Documents\Arduino\libraries\FastLED\src/FastLED.h:48:0,

                 from C:\Users\bharg\OneDrive\Documents\Arduino\libraries\FastLED\examples\Cylon\Cylon.ino:1:

C:\Users\bharg\OneDrive\Documents\Arduino\libraries\FastLED\src/fastpin.h: In instantiation of 'class FastPin<7>':

C:\Users\bharg\OneDrive\Documents\Arduino\libraries\FastLED\src/platforms/avr/clockless_trinket.h:100:49:   required from 'class ClocklessController<7, 2, 5, 3, (EOrder)10, 0, false, 10>'

C:\Users\bharg\OneDrive\Documents\Arduino\libraries\FastLED\src/chipsets.h:474:7:   required from 'class WS2812Controller800Khz<7, (EOrder)10>'

C:\Users\bharg\OneDrive\Documents\Arduino\libraries\FastLED\src/FastLED.h:103:52:   required from 'class WS2812<7, (EOrder)10>'

C:\Users\bharg\OneDrive\Documents\Arduino\libraries\FastLED\src/FastLED.h:302:39:   required from 'static CLEDController& CFastLED::addLeds(CRGB*, int, int) [with CHIPSET = WS2812; unsigned char DATA_PIN = 7; EOrder RGB_ORDER = (EOrder)10]'

C:\Users\bharg\OneDrive\Documents\Arduino\libraries\FastLED\examples\Cylon\Cylon.ino:18:49:   required from here

C:\Users\bharg\OneDrive\Documents\Arduino\libraries\FastLED\src/fastpin.h:210:2: error: static assertion failed: Invalid pin specified

  static_assert(validpin(), "Invalid pin specified");

  ^~~~~~~~~~~~~

Using library FastLED at version 3.4.0 in folder: C:\Users\bharg\OneDrive\Documents\Arduino\libraries\FastLED 

exit status 1

Error compiling for board ATmega128.


i used FastLED library for this compilations.

It looks like this library will not work with this microcontroller. I can recommend another one. For me, the sample program for WS2812 from the FAB_LED library compiles normally without an error message when the ATmega128 chip is selected.

Good luck.

Hii..

I have try library you suggested.

using FAB_LED compilation error solved. it compiled program perfectly but on real hardware only White Color is On.

i used sample program provided by Library. Code is as below.


#include <FAB_LED.h>

// Declare the LED protocol and the port
ws2812b<F,0>  strip;

// How many pixels to control
const uint8_t numPixels = 28;

// How bright the LEDs will be (max 255)
const uint8_t maxBrightness = 16;

// The pixel array to display
grb  pixels[numPixels] = {};


////////////////////////////////////////////////////////////////////////////////
// Sets the array to specified color
////////////////////////////////////////////////////////////////////////////////
void updateColors(char r, char g, char b)
{
  for(int i = 0; i < numPixels; i++)
  {
    pixels[i].r = r;
    pixels[i].g = g;
    pixels[i].b = b;
  }
}

////////////////////////////////////////////////////////////////////////////////
// This method is automatically called once when the board boots.
////////////////////////////////////////////////////////////////////////////////
void setup()
{
  // Turn off the LEDs
  strip.clear(2 * numPixels);
}

////////////////////////////////////////////////////////////////////////////////
/// @brief This method is automatically called repeatedly after setup() has run.
/// It is the main loop.
////////////////////////////////////////////////////////////////////////////////
void loop()
{

  // Write the pixel array red
  updateColors(maxBrightness, 0 , 0);
  // Display the pixels on the LED strip
  strip.sendPixels(numPixels, pixels);
  // Wait 0.1 seconds
  delay(100);

  // Write the pixel array green
  updateColors(0, maxBrightness, 0);
  // Display the pixels on the LED strip
  strip.sendPixels(numPixels, pixels);
  // Wait 0.1 seconds
  delay(100);

  // Write the pixel array blue
  updateColors(0, 0, maxBrightness);
  // Display the pixels on the LED strip
  strip.sendPixels(numPixels, pixels);
  // Wait 0.1 seconds
  delay(100);

  // Write the pixel array white
  updateColors( maxBrightness, maxBrightness, maxBrightness);
  // Display the pixels on the LED strip
  strip.sendPixels(numPixels, pixels);
  // Wait 0.1 seconds
  delay(100);

  // Turn off the LEDs
  strip.clear(numPixels);
  delay(600);
}

Some smart LEDs light in white when no data has been received. Check that you have connected correctly. Check that the selected pin matches the port and number in the program. Check if there is a signal on the pin with an oscilloscope. Why did you choose exactly port F, pin 0? The datasheet says that if the ATmega128 is programmed in compatibility mode like the ATmega103, the port F pins work as digital inputs only. Try another pin and port.

https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/2467S.pdf - page 5, ATmega103 Compatibility Mode

Hii Flashko..

I have disabled Atmega103 compatible mode from fuse bit setting.

I choose exact pin F,0 because my PCB is already designed. however I also tried with other port and pin. result is not change.

when i check output in simulator i am getting digital pulses like below but in hardware no output.

In oscilloscope on each pin I got no any signal. when i simply on and off pin i am getting square wave of 0 and 1.

I have no other ideas, sorry. Maybe someone else will help you. Good luck.

Ok flashko...thanks for your help. :pray:

Hello flashko...

I found solution of problem.

I was running my ATMEGA128 on 8 MHz internal clock frequency and when I read full library document detail than I come to know that this library works on 8MHz and higher frequency and they didn't have tested on 8MHz as they mentioned.

So I change my frequency to 16MHz and Tested it works perfectly.

By the way thanks for your support.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.