 #include "FastSPI_LED2.h"
+#include "Streaming.h"
 
 #define ROWS 10
 #define COLS 10

  walker_leds[step_counter] = moving_colours[colour_counter];
}

void update(){
  LEDS.show();
}

void loop(){
  if(millis()-prevStepTime >= WALKER_TIMESTEP){
    prevStepTime = millis();
    /*
    if(--step_period == 0){
      // step_period is reset inside step_led();
      step_led();
    }*/
    draw_walker(seconds_left--);
  }
  /*
  if(millis()-prevCounterTime >= 500){
    prevCounterTime = millis();
    writeDigits(seconds_left--);
  }*/
  
  if(millis()-prevUpdateTime >= UPDATE_TIME){
    prevUpdateTime = millis();
    for(uint8_t i_led=0; i_led != NUM_LEDS; ++i_led){
      for(uint8_t i=0; i!=3; ++i)
        leds[i_led][i] = walker_leds[i_led][i];
        // leds[i_led][i] = (uint8_t) (((uint16_t)leds[i_led][i]*19 + (uint16_t)walker_leds[i_led][i]/2 + (uint16_t)counter_leds[i_led][i]/3)/20);
    }
    update();
  }
  
  if(millis()-prevReportTime >= 500){
    prevReportTime = millis();
//    Serial.println(step_period);
  }
}

