#include <Adafruit_NeoPixel.h>
#define PIN 25 // Pinnen vi bruker til Neopixlene
int DELAY_TIME = 100;
#define NUMPIXELS 60 // Antall neopixler på en hel sirkel
#define NUM_PIXELS 60
int STEP_DELAY = 50;
int ANIMATION_DURATION = 3000;
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
#include "animasjoner.h" // Inkluderer animasjonene
void setup() {
  Serial.begin(115200);
  
  strip.begin();
  strip.show(); // Setter alle pixlene til 'AV'
  
}
void loop() {
  // Serialkommandoer
    if (Serial.available()) {
      String kommando = Serial.readStringUntil('\n');
      if(kommando == "blink") {
        blink();
        delay(1000);
      }
      if(kommando == "tull"){
        animate();
        delay(1000);
      }
      if(kommando == "Fatimah"){
        runAnimation();
        delay(1000);
      }
      if(kommando == "Oliver"){
        runFullAnimation();
        delay(1000);
      }
      if(kommando == "Tareq"){
        runAnimationTareq();
        delay(1000);
      }
      if(kommando == "Julian"){
        Julian();
        delay(1000);
      }
      if(kommando == "Leonardo"){
        animateColor(strip.Color(255, 0, 0)); // Red
        animateColor(strip.Color(0, 255, 0)); // Green
        animateColor(strip.Color(0, 0, 255)); // Blue
        delay(1000);
      }
    }
  strip.clear();  
  strip.show();
  delay(500);
}