       case 'p':
         gPauseMotor = !gPauseMotor;
         break;
+      case 'l':
+        gLogLevel = (gLogLevel + 1) % (LOG_LEVEL_VERBOSE + 1);
+        //Log.Init(9600, gLogLevel);
+        static const  char* levelStrings[]  = {"DISABLED","VERBOSE", "DEBUG", "INFO", "ERROR"};
+        Serial.print("Log level is "); Serial.println(levelStrings[gLogLevel]);
       default:
         Log.Error("Ignorning unknown command: %c\n", c);
         

    checkNotes(reflectedLightValues, pluckedNotes);
  }

  //checkButtons();
  checkSonar();

  //It just read item 7. So going backwards, read items 6 through zero.

{
  int height = analogRead(sonarPin);

  char heightBuf[81] = {0};
  drawMeter(height, 160, heightBuf);
//  Log.Info("%s\n", heightBuf);
  Serial.println(heightBuf);

  if (height > 170)
  {
