#include <Adafruit_NeoPixel.h>
#define LED_PIN  2
#define LED_COUNT  16
#define BRIGHTNESS 250 
int sekund = 100;
Adafruit_NeoPixel strip(LED_COUNT, LED_PIN, NEO_RGB + NEO_KHZ800);
void setup() {
  Serial.begin(9600);
  strip.begin();           
  strip.show();            
  strip.setBrightness(BRIGHTNESS);
}
void loop() {
  int tidSidenStart = millis()/1000;
  int tidIgjen = sekund - tidSidenStart;
  strip.clear(); 
  nedTelling(strip.Color(125,   0,   0)     , tidIgjen); // Red
  
  strip.show();   
  Serial.print("Tid igjen: ");
  Serial.println(tidIgjen);
  delay(1000);
}
void nedTelling(uint32_t color, int sekundIgjen) {
  int dioder = map(sekundIgjen, 0, 100, 1, LED_COUNT);
  for(int i=0; i<dioder; i++) {  
    strip.setPixelColor(i, color);
  }  
}