#include <LedControl.h>
#include "Ball.h"
#include "Limit.h"

#define DATA_IN 11
#define CLOCK 13
#define LOAD 4
#define NUMB_DISPLAYS 1

//Set dei pin dello schermo
LedControl LC = LedControl (DATA_IN, CLOCK, LOAD, NUMB_DISPLAYS);

Ball palla1;

void setup () {
  Serial.begin (9600);
  //Begin dello schermo
  LC.shutdown(0, false);
  LC.setIntensity(0, 8);
  LC.clearDisplay(0);

  palla1.pointerLC = &LC;

  palla1.begin (0.00, 0.00, 1.00, 30.00);
}

void loop() {
  palla1.step();

  delay (10000);
}