 #define DEFAULT_WEIGHT_PRINT_TIME 5000
 #define DEFAULT_EMPTY_VALUE 8237827
 #define BAUD_RATE 9600
+#define KILO 1000
+#define TAP_SIZE 330
+#define KEG_WEIGHT 4000
 
 // Not in use. May be used in the future.
 int EEPROM_ADDR = 0;
 
 // initialize the library with the numbers of the interface pins
-LiquidCrystal lcd(13, 12, 8, 9, 10, 11);
+LiquidCrystal lcd(13, 12, 8, 9, 10, 11); //PROD
+//LiquidCrystal lcd(8, 9, 4, 5, 6, 7); //DEBUG
+
 HX711 scales[WEIGHT_SENSORS] = {HX711 (A1, A2)};
 
 unsigned long last = 0;

  unsigned long now = millis();

  if ((last + DEFAULT_WEIGHT_TIME) < now) {
    scales[0].power_up();
    lcd.setCursor(0, 1);
    float value = scales[0].get_units(10) * -10;
    if (value > -10 && value < 10)  {
      value = 0;
    }
    
    if ((lastPrint + DEFAULT_WEIGHT_PRINT_TIME) < now) {
       Serial.print("V1:");
       Serial.println(value, 1);
       lastPrint = now;
    }
    char weight[8];
    String grams = " g      ";
    dtostrf(value, 1, 1, weight);
    lcd.print(weight +  grams);
    delay(50);
    scales[0].power_down();	// put the ADC in sleep mode
    last = millis();
  }
}


void setup() {
  Serial.begin(BAUD_RATE);
  lcd.begin(16, 2);
  lcd.print("Starting....");
  
  for (int i = 0; i < WEIGHT_SENSORS; i++) {
    scales[i].set_scale(2280.f);
    scales[i].tare();
    delay(DELAY);		      
    scales[i].set_offset(DEFAULT_EMPTY_VALUE);
  }
  lcd.clear();
}


