   }
 }
 
-void readSensorWriteLEDs(int servoPos, int i){
-  servo.write(servoPos);
+void readSensorWriteLEDs(int servoPosition, int i){
+  servo.write(servoPosition);
   
   triggerSensor();
   int distance = readSensor();;
   printDistance(distance);
  
-  distanceValues[i] = distance; 
-  visualizeCircle();
-  
+  distanceValues[i] = distance;
+  visualizeWithDirection();
+
   delay(servoMSPerDegree*servoStepAngle);
 }
 

/* Ping))) Sensor
 
 This sketch reads a PING))) ultrasonic rangefinder and returns the
 distance to the closest object in range. To do this, it sends a pulse
 to the sensor to initiate a reading, then listens for a pulse 
 to return.  The length of the returning pulse is proportional to 
 the distance of the object from the sensor.
 
 The circuit:
 	* +V connection of the PING))) attached to +5V
 	* GND connection of the PING))) attached to ground
 	* SIG connection of the PING))) attached to digital pin 7
 */
 
#include <Adafruit_NeoPixel.h>
#include <Servo.h> 
#include <avr/power.h>

#define PIN_STRIP 6
#define PIN_SENSOR 7
#define PIN_SERVO 8
#define NUMBER_LEDS 48
#define NUMBER_STRIPS 3

Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUMBER_LEDS, PIN_STRIP, NEO_GRB + NEO_KHZ800);
Servo servo;

int servoPos = 0;
int servoSteps = 6;
int servoMinAngle = 0;
int servoMaxAngle = 90;
int servoStepAngle = (servoMaxAngle-servoMinAngle)/(servoSteps-1);
int servoMSPerDegree = 200;

int distanceValues[6];

void setup() {
  for(int i=0; i<servoSteps; i+=1){
    distanceValues[i] = 0;
  }
  
  Serial.begin(9600);
  
  strip.begin();
  strip.setBrightness(64);
  strip.show();
  
  servo.attach(PIN_SERVO);
  servo.write(servoPos);
  delay(500);
}

void loop(){
  int i = 0;
  for(servoPos = servoMinAngle; servoPos < servoMaxAngle; servoPos += servoStepAngle){

  Serial.print(" cm");
  Serial.println();
}

void printDistanceValues(){
  for(int i=0; i<servoSteps; i++){
    Serial.print(distanceValues[i]);
    Serial.print(" ");
  }
  Serial.println();
}
 
int microsecondsToCentimeters(long microseconds)
{
