#include <FastLED.h>
#define NUM_LEDS 32
#define DATA_PIN 3
#define CLOCK_PIN 13


int i = 0;

CRGB leds[NUM_LEDS];

void setup() {
  Serial.begin(115200);
  // put your setup code here, to run once:
     FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS); 
}

void loop() {
  // put your main code here, to run repeatedly:

  leds[i % NUM_LEDS] = CRGB(i%255, 255 - i%255, 0);
  FastLED.show();
  delay(20);
// deljenje z ostankom

//   7/3 = 1¸ostanek
  i++;
  
}

  /*
  for (int i = 0; i < NUM_LEDS; i++){
    Serial.println(i);
    //if (i < NUM_LEDS/2){
    leds[i] = CRGB(i* (255/NUM_LEDS), 255 - i, 0);
    //}
    //else{
      //leds[i] = CRGB(23, 65, 189);
    //}
    
 
    FastLED.show();
    delay(200);
  }
  delay(1000);
  for (int i = 0; i < NUM_LEDS; i++){
    Serial.println(i);
    leds[i] = CRGB::Black;
    FastLED.show();
    delay(200);
  }
  */