#include <Adafruit_NeoPixel.h>
int anzahl = 140;
Adafruit_NeoPixel strip(anzahl, 13, NEO_GRB + NEO_KHZ800);

long rot = strip.Color(100, 0, 0);
long gruen = strip.Color(0, 100, 0);
byte rechts = 11; byte links = 9; byte runter = 10;
int i = 0;

void setup() {
  pinMode(rechts, INPUT);
  pinMode(links, INPUT);
  pinMode(runter, INPUT);
  strip.begin();
  strip.show();
}

void loop() {
  while(i<=136){
  if (digitalRead(rechts) == LOW) {
    delay(10);
    i = i + 4;
    delay(100);
  }
  if (digitalRead(links) == LOW) {
    delay(10);
    i = i - 4;
    delay(100);
  }
  if (digitalRead(runter) == LOW) {
    delay(10);
    i = i + 28;
    delay(100);
  }
  strip.fill(rot, i, 4);
  strip.show();
  }
}

void schieben1() {
  for (int i = 0; i <= 136; i = i + 4) {
    strip.fill(rot, i, 4);
    strip.show();
    delay(500);
  }
  strip.clear();
}

void schieben2() {
  for (int i = 0; i <= 136; i = i + 4) {
    strip.fill(gruen, i, 4);
    strip.show();
    delay(500);
  }
  strip.clear();
}