   // save old contrast just in case we don't set it here
   int old_contrast = LcdContrast;
   
-  // convert contrast value to a display value in [0, 16]
-  int index = LcdContrast / 8;
-
-  if (index > 16)   // ensure in range
-    index = 16;
-  if (index < 1)
-    index = 1;
+  // convert contrast value to a display value in [0, 15]
+  int index = LcdContrast / 3;
+
+  if (index > 15)   // ensure in range
+    index = 15;
+  if (index < 0)
+    index = 0;
  
   // get rid of any stray events to this point
   event_flush();

  
  // show row slot info on row 1
  // Contrast voltage works opposite to brightness
  draw_row1_bar(17 - index);

  // handle events in our own little event loop
  while (true)

      }

      // adjust display contrast so we can see the results
      LcdContrast = index * 3;
      analogWrite(mc_Contrast, LcdContrast);

      // show brightness value in row 1
      // Contrast voltage works opposite to brightness
      draw_row1_bar(16 - index);
    }
  }
}
