Controlling WS2812s with OneButton and FastLED

Hello, I am trying to control 2 WS28128B strips with 21 pixels per strip using a button to switch between lightshow modes and also turn the power off. Microcontroller is an Arduino Nano ATmega328P being supplied power via USB by a mobile power bank (5V2.4A). I am fairly new to Arduino (maybe 2 weeks of experience) and coding in general (the last time I tried to learn a programming language was at least 13 years ago in High School). I was following the YouTube series by Scott Marley on programming with FastLED and OneButton libraries. I struggled last week trying to get his code to function so that holding a physical button down would 'turn off' the program (or set all the lights to black). Last night I was able to programmatically make that happen and thought "Awesome, let's just add some more pre-made show modes" and that's where everything took a turn for the worse. I'm getting errors when compiling now "qualified-id in declaration before '(' token".
Searching the forums here, other users have had this issue and they usually had an extra/missing semi-colon or {}'s, but I have searched my own code and have yet to find anything. Most of the code is copy+pasted from someone else's hard work so I imagine I forgot to change a variable or something to that degree. I'm not sure if this will paste all of the libraries associated with it either, so I'll post a github link to the program file as well.

I had a working copy of this program before adding more show modes and that can be found here:

Non-working code:

I hope I followed all the guidelines for post requirements, if not please feel free to let me know what I did wrong or need to add for more clarity.

[code]
#include <FastLED.h>
#include <OneButton.h>
#include "Arduino.h"

#define NUM_LEDS  21
#define LED_PIN   6
#define BTN_PIN   3
#define BRIGHTNESS 200
#define FRAMES_PER_SECOND  120

CRGB leds[NUM_LEDS];
uint8_t patternCounter = 0;
bool isRunning = false;
bool isPressed = false;
bool isLongPressed = false;
uint8_t gHue = 0; // rotating "base color" used by many of the patterns

// Push button connected between pin 3 and GND (no resistor required)
OneButton btn = OneButton(BTN_PIN, true, true);

#include "MovingDot.h"
#include "RainbowBeat.h"
#include "RedWhiteBlue.h"
#include "Rainbow.h"
#include "RainbowWithGlitter.h"
#include "Confetti.h"
#include "Sinelon.h"
#include "Bpm.h"
#include "Juggle.h"
#include "AddGlitter.h"

void setup() {
  FastLED.addLeds<WS2812B, LED_PIN, GRB>(leds, NUM_LEDS);
  FastLED.setBrightness(BRIGHTNESS);
  Serial.begin(57600);

  btn.attachClick(nextPattern);
  btn.attachLongPressStart(stopPattern);
}

void loop() {
  if (isLongPressed = true) {
    stopPattern();
//    isRunning = false;
    FastLED.setBrightness(0);
  }
  FastLED.setBrightness(BRIGHTNESS);
  switch (patternCounter) {
    case 0:
      runMovingDot();
      break;
    case 1:
      runRainbowBeat();
      break;
    case 2:
      runRedWhiteBlue();
      break;
    case 3:
      runRainbow();
      break;
    case 4:
      runRainbowWithGlitter();
      break;
    case 5:
      runConfetti();
      break;
    case 6:
      runSinelon();
      break;
    case 7:
      runTroll();
      break;
    case 8:
      runBpm();
      break;            
  }
  FastLED.show();
  btn.tick();
}

void runRainbow() {
  isRunning = true;
  Rainbow rainbow = Rainbow();
  while(isRunning) rainbow.runPattern();
}

//void rainbow() 
//{
  // FastLED's built-in rainbow generator
//  fill_rainbow( leds, NUM_LEDS, gHue, 7);
//}

void runRainbowWithGlitter() {
  isRunning = true;
  RainbowWithGlitter rainbowWithGlitter = RainbowWithGlitter();
  while(isRunning) rainbowWithGlitter.runPattern();
}

//void rainbowWithGlitter() 
//{
//  built-in FastLED rainbow, plus some random sparkly glitter
//  Rainbow();
//  addGlitter(80);
//}

//void addGlitter( fract8 chanceOfGlitter) {
//  if( random8() < chanceOfGlitter) {
//    leds[ random16(NUM_LEDS) ] += CRGB::White;
//  }
//}

void runConfetti() {
  isRunning = true;
  Confetti confetti = Confetti();
  while(isRunning) confetti.runPattern();
}

//void confetti() 
//{
//  random colored speckles that blink in and fade smoothly
//  fadeToBlackBy( leds, NUM_LEDS, 10);
//  int pos = random16(NUM_LEDS);
//  leds[pos] += CHSV( gHue + random8(64), 200, 255);
//}

void runSinelon() {
  isRunning = true;
  Sinelon sinelon = Sinelon();
  while(isRunning) sinelon.runPattern();
}

//void sinelon()
//{
//   a colored dot sweeping back and forth, with fading trails
//  fadeToBlackBy( leds, NUM_LEDS, 20);
//  int pos = beatsin16( 13, 0, NUM_LEDS-1 );
//  leds[pos] += CHSV( gHue, 255, 192);
//}

void runBpm() {
  isRunning = true;
  Bpm bpm = Bpm();
  while(isRunning) bpm.runPattern();
}

//void bpm()
//{
  // colored stripes pulsing at a defined Beats-Per-Minute (BPM)
//  uint8_t BeatsPerMinute = 62;
//  CRGBPalette16 palette = PartyColors_p;
//  uint8_t beat = beatsin8( BeatsPerMinute, 64, 255);
//  for( int i = 0; i < NUM_LEDS; i++) { //9948
//    leds[i] = ColorFromPalette(palette, gHue+(i*2), beat-gHue+(i*10));
//  }
//}

//void runTroll() {
//  isRunning = true;
//  Troll troll = Troll();
//  while(isRunning) troll.runPattern();
//}

//void juggle() {
  // eight colored dots, weaving in and out of sync with each other
//  fadeToBlackBy( leds, NUM_LEDS, 20);
//  byte dothue = 0;
//  for( int i = 0; i < 8; i++) {
//    leds[beatsin16( i+7, 0, NUM_LEDS-1 )] |= CHSV(dothue, 200, 255);
//    dothue += 32;
//  }
//}

void nextPattern() {
  isRunning = false;
  patternCounter = (patternCounter + 1) % 9;      // The number after % should reflect the total # of cases to cycle through
}

void stopPattern() {
  isPressed = true;
//  delay(1000);
  if (isLongPressed = true){
    isRunning = false;
    FastLED.clear();
    FastLED.setBrightness(0);
    FastLED.show();
    btn.tick();
  }
}

void runMovingDot() {
  isRunning = true;
  MovingDot movingDot = MovingDot();
  while(isRunning) movingDot.runPattern();
}

void runRainbowBeat() {
  isRunning = true;
  RainbowBeat rainbowBeat = RainbowBeat();
  while(isRunning) rainbowBeat.runPattern();
}

void runRedWhiteBlue() {
  isRunning = true;
  RedWhiteBlue redWhiteBlue = RedWhiteBlue();
  while(isRunning) redWhiteBlue.runPattern();
}
[/code]

Error messages:

Arduino: 1.8.16 (Windows 10), Board: "Arduino Nano, ATmega328P"





















C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\HP Omen\OneDrive\Documents\Arduino\libraries -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10816 -build-path C:\Users\HPOMEN~1\AppData\Local\Temp\arduino_build_609916 -warnings=none -build-cache C:\Users\HPOMEN~1\AppData\Local\Temp\arduino_cache_264329 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\HP Omen\OneDrive\Desktop\MAIN Arduino\FastLED-basics-main\FastLED-basics-main\5. Multiple patterns\classesButton\Scooter_Code_with_Button_ALL9\Scooter_Code_with_Button_ALL9.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\HP Omen\OneDrive\Documents\Arduino\libraries -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10816 -build-path C:\Users\HPOMEN~1\AppData\Local\Temp\arduino_build_609916 -warnings=none -build-cache C:\Users\HPOMEN~1\AppData\Local\Temp\arduino_cache_264329 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\HP Omen\OneDrive\Desktop\MAIN Arduino\FastLED-basics-main\FastLED-basics-main\5. Multiple patterns\classesButton\Scooter_Code_with_Button_ALL9\Scooter_Code_with_Button_ALL9.ino

Using board 'nano' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr

Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr

Detecting libraries used...

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "C:\\Users\\HPOMEN~1\\AppData\\Local\\Temp\\arduino_build_609916\\sketch\\Scooter_Code_with_Button_ALL9.ino.cpp" -o nul

Alternatives for FastLED.h: [FastLED@3.4.0]

ResolveLibrary(FastLED.h)

  -> candidates: [FastLED@3.4.0]

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "C:\\Users\\HPOMEN~1\\AppData\\Local\\Temp\\arduino_build_609916\\sketch\\Scooter_Code_with_Button_ALL9.ino.cpp" -o nul

Alternatives for OneButton.h: [OneButton@2.0.2]

ResolveLibrary(OneButton.h)

  -> candidates: [OneButton@2.0.2]

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\OneButton\\src" "C:\\Users\\HPOMEN~1\\AppData\\Local\\Temp\\arduino_build_609916\\sketch\\Scooter_Code_with_Button_ALL9.ino.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\OneButton\\src" "C:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\FastLED.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\OneButton\\src" "C:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\bitswap.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\OneButton\\src" "C:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\colorpalettes.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\OneButton\\src" "C:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\colorutils.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\OneButton\\src" "C:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\hsv2rgb.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\OneButton\\src" "C:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\lib8tion.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\OneButton\\src" "C:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\noise.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\OneButton\\src" "C:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\platforms\\esp\\32\\clockless_rmt_esp32.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\OneButton\\src" "C:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\platforms.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\OneButton\\src" "C:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\power_mgt.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\OneButton\\src" "C:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src\\wiring.cpp" -o nul

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\OneButton\\src" "C:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\OneButton\\src\\OneButton.cpp" -o nul

Generating function prototypes...

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\OneButton\\src" "C:\\Users\\HPOMEN~1\\AppData\\Local\\Temp\\arduino_build_609916\\sketch\\Scooter_Code_with_Button_ALL9.ino.cpp" -o "C:\\Users\\HPOMEN~1\\AppData\\Local\\Temp\\arduino_build_609916\\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\\HPOMEN~1\\AppData\\Local\\Temp\\arduino_build_609916\\preproc\\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\FastLED\\src" "-IC:\\Users\\HP Omen\\OneDrive\\Documents\\Arduino\\libraries\\OneButton\\src" "C:\\Users\\HPOMEN~1\\AppData\\Local\\Temp\\arduino_build_609916\\sketch\\Scooter_Code_with_Button_ALL9.ino.cpp" -o "C:\\Users\\HPOMEN~1\\AppData\\Local\\Temp\\arduino_build_609916\\sketch\\Scooter_Code_with_Button_ALL9.ino.cpp.o"

In file included from C:\Users\HP Omen\OneDrive\Desktop\MAIN Arduino\FastLED-basics-main\FastLED-basics-main\5. Multiple patterns\classesButton\Scooter_Code_with_Button_ALL9\Scooter_Code_with_Button_ALL9.ino:1:0:

C:\Users\HP Omen\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\HP Omen\OneDrive\Desktop\MAIN Arduino\FastLED-basics-main\FastLED-basics-main\5. Multiple patterns\classesButton\Scooter_Code_with_Button_ALL9\Scooter_Code_with_Button_ALL9.ino:30:0:

C:\Users\HP Omen\OneDrive\Desktop\MAIN Arduino\FastLED-basics-main\FastLED-basics-main\5. Multiple patterns\classesButton\Scooter_Code_with_Button_ALL9\AddGlitter.h: In member function 'void Bpm::runPattern()':

AddGlitter.h:10:28: error: qualified-id in declaration before '(' token

 void AddGlitter::runPattern() {

                            ^

Scooter_Code_with_Button_ALL9:32:14: error: a function-definition is not allowed here before '{' token

 void setup() {

              ^

Scooter_Code_with_Button_ALL9:41:13: error: a function-definition is not allowed here before '{' token

 void loop() {

             ^

Scooter_Code_with_Button_ALL9:81:19: error: a function-definition is not allowed here before '{' token

 void runRainbow() {

                   ^

Scooter_Code_with_Button_ALL9:93:30: error: a function-definition is not allowed here before '{' token

 void runRainbowWithGlitter() {

                              ^

Scooter_Code_with_Button_ALL9:112:20: error: a function-definition is not allowed here before '{' token

 void runConfetti() {

                    ^

Scooter_Code_with_Button_ALL9:126:19: error: a function-definition is not allowed here before '{' token

 void runSinelon() {

                   ^

Scooter_Code_with_Button_ALL9:140:15: error: a function-definition is not allowed here before '{' token

 void runBpm() {

               ^

Scooter_Code_with_Button_ALL9:173:20: error: a function-definition is not allowed here before '{' token

 void nextPattern() {

                    ^

Scooter_Code_with_Button_ALL9:178:20: error: a function-definition is not allowed here before '{' token

 void stopPattern() {

                    ^

Scooter_Code_with_Button_ALL9:190:21: error: a function-definition is not allowed here before '{' token

 void runMovingDot() {

                     ^

Scooter_Code_with_Button_ALL9:196:23: error: a function-definition is not allowed here before '{' token

 void runRainbowBeat() {

                       ^

Scooter_Code_with_Button_ALL9:202:24: error: a function-definition is not allowed here before '{' token

 void runRedWhiteBlue() {

                        ^

Scooter_Code_with_Button_ALL9:206:1: error: expected '}' at end of input

 }

 ^

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

Using library OneButton at version 2.0.2 in folder: C:\Users\HP Omen\OneDrive\Documents\Arduino\libraries\OneButton 

exit status 1

qualified-id in declaration before '(' token

there's an error in AddGlitter.h

where is this file? did you create it or modify it?

Besides your other error, here is another. '=' is assignment, '==' is comparision