 const int SPI_SCLK         = 15;
 const int SPI_MOSI         = 16;
 const int ENC_BUTTON       = 18; //Maybe this should be an interrupt. if it does, we need to move CS to a different pin
-const int SPARE_18         = 18;
 const int SPARE_19         = 19;
-const int CURRENT_FEEDBACK = 20;
+const int CURRENT_SENSE    = 20;
 const int CRADLE_SENSOR    = 21;
 const int OLED_RESET       = 4; //the library asks for a reset pin, but our OLED doesn't have one 
 

    display.setTextSize(1);
    display.setTextColor(WHITE);
    display.setCursor(0,0);

    
    //if (dell.read_data()==true)
  //{
    display.clearDisplay();
    display.setTextSize(1);
    display.setTextColor(WHITE);
    display.setCursor(0,0);
//float tempfloat = (float)adc_copy * 0.1901 + 1.6192+(float)temperature_copy;

 display.print(temperature_copy);
 display.print(" ");
 display.print(adc_copy);
 //display.print(" ");
 //display.print(tempfloat);

 display.display();
 //Serial.print(millis());

//Volatile Variables used by the interrupt handlers
volatile int16_t adc_value=0;          //ADC value read by ADS1118
volatile int16_t temperature_value=0;  //internal temp of ADS1118
volatile int16_t current_sense_raw;    //raw adc reading
double kP=2, kI=0, kD=0;

//Global Objects
#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);  //TODO: look into this reset pin. The LCD i'm using does not have a reset pin, just PWR,GND,SDA,SCL
Encoder knob(ENC_A, ENC_B);
DellPSU dell(DELL_PSU);   //specify the desired Arduino pin number


